Sametime: Secrets URLs: Difference between revisions

From Wiki
(Criou nova página com ' == Policies == * http: //<systemconsoleserver>:9080/stpolicy/policy/all Get policies from System Console, return in json format Example: {"PolicyInfo":[{"policyWeig...')
 
No edit summary
Line 2: Line 2:
== Policies ==
== Policies ==


* http: //<systemconsoleserver>:9080/stpolicy/policy/all
* http: //<system_console_server>:9080/stpolicy/policy/all


Get policies from System Console, return in json format
Get policies from System Console, return in json format


Example:
'''Example''':


'''http: //<system_console_server>:9080/stpolicy/policy/all'''
Result:
  {"PolicyInfo":[{"policyWeight":"1","policyType":"USER","policyProduct":"av","policyId":"av.default.policy"},
  {"PolicyInfo":[{"policyWeight":"1","policyType":"USER","policyProduct":"av","policyId":"av.default.policy"},
  {"policyWeight":"1","policyType":"USER","policyProduct":"im","policyId":"im.default.policy"},  
  {"policyWeight":"1","policyType":"USER","policyProduct":"im","policyId":"im.default.policy"},  
Line 16: Line 20:
  {"policyWeight":"0","policyType":"USER","policyProduct":"ms","policyId":"ms.anonymous.policy"},
  {"policyWeight":"0","policyType":"USER","policyProduct":"ms","policyId":"ms.anonymous.policy"},
  {"policyWeight":"0","policyType":"USER","policyProduct":"sc","policyId":"sc.anonymous.policy"}]}
  {"policyWeight":"0","policyType":"USER","policyProduct":"sc","policyId":"sc.anonymous.policy"}]}
== UserInfoServlet ==
Get information from Sametime Community about users
* http: //<community_server>/servlet/UserInfoServlet?operation=3&setid=1&userId=<LDAP_Query_string>
'''Example''':
In this case i using TDS as LDAP
'''http://<community_server>/servlet/UserInfoServlet?operation=3&setid=1&userId=uid=ebasso'''
Returns:
<userinfo>
<user id="uid=ebasso">
<field name="MailAddress" type="" error="myemailaddress"/>
<field name="Name" type="" error="Enio Basso"/>
<field name="Title" type="" error="Sametime Specialist"/>
<field name="Location" type="" error="UNAVAILABLE"/>
<field name="Telephone" type="" error="UNAVAILABLE"/>
<field name="Photo" type="image/jpeg">/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgK
.../uj+OafUCWK4hnxATkmLLDpx0NNFpAwBlxvHB+c9uKzrseQYpIvlbypBkegNbJ5OaNtg3P/9k=</field>
</user>
</userinfo>
'''Notes''':
No spaces in url, you must change for the characters "%20". Example: userId=cn=Enio%20Basso

Revision as of 11:48, 29 October 2013

Policies

  • http: //<system_console_server>:9080/stpolicy/policy/all

Get policies from System Console, return in json format

Example:

http: //<system_console_server>:9080/stpolicy/policy/all

Result:

{"PolicyInfo":[{"policyWeight":"1","policyType":"USER","policyProduct":"av","policyId":"av.default.policy"},
{"policyWeight":"1","policyType":"USER","policyProduct":"im","policyId":"im.default.policy"}, 
{"policyWeight":"1","policyType":"USER","policyProduct":"ms","policyId":"ms.default.policy"},
{"policyWeight":"1","policyType":"USER","policyProduct":"sc","policyId":"sc.default.policy"},
{"policyWeight":"0","policyType":"USER","policyProduct":"im","policyId":"im.anonymous.policy"},
{"policyWeight":"0","policyType":"USER","policyProduct":"av","policyId":"av.anonymous.policy"},
{"policyWeight":"0","policyType":"USER","policyProduct":"ms","policyId":"ms.anonymous.policy"},
{"policyWeight":"0","policyType":"USER","policyProduct":"sc","policyId":"sc.anonymous.policy"}]}


UserInfoServlet

Get information from Sametime Community about users

  • http: //<community_server>/servlet/UserInfoServlet?operation=3&setid=1&userId=<LDAP_Query_string>


Example:

In this case i using TDS as LDAP

http://<community_server>/servlet/UserInfoServlet?operation=3&setid=1&userId=uid=ebasso

Returns:

<userinfo>
<user id="uid=ebasso">
<field name="MailAddress" type="" error="myemailaddress"/>
<field name="Name" type="" error="Enio Basso"/>
<field name="Title" type="" error="Sametime Specialist"/>
<field name="Location" type="" error="UNAVAILABLE"/>
<field name="Telephone" type="" error="UNAVAILABLE"/>
<field name="Photo" type="image/jpeg">/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgK
.../uj+OafUCWK4hnxATkmLLDpx0NNFpAwBlxvHB+c9uKzrseQYpIvlbypBkegNbJ5OaNtg3P/9k=</field>
</user>
</userinfo>


Notes:

No spaces in url, you must change for the characters "%20". Example: userId=cn=Enio%20Basso