GetUsersForRole |
This Web service operation is used to retrieve all users within a DN (an application package or an organization) with a particular role.
SOAP Request
<GetUsersForRole xmlns="http://schemas.cordys.com/1.0/ldap"> <dn>o=system,cn=cordys,cn=defaultInst,o=vanenburg.com</dn> <role>cn=systemAdmin,cn=organizational roles,o=system,cn=cordys,cn=defaultInst,o=vanenburg.com</role> </GetUsersForRole>
Request Parameters
Tags |
Description |
---|---|
dn |
The distinguished name of the organization. |
role |
The distinguished name of the role. |
sort |
The order in which the users are to be sorted, ascending or descending. |
SOAP Response
<GetUsersForRoleResponse xmlns="http://schemas.cordys.com/1.0/ldap" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <tuple> <old> <entry dn="cn=ann,cn=organizational users,o=system,cn=cordys,cn=defaultInst,o=vanenburg.com"> <authenticationuser> <string>cn=ann,cn=authenticated users,cn=cordys,cn=defaultInst,o=vanenburg.com</string> </authenticationuser> <description> <string>ann</string> </description> <role> <string>cn=systemAdmin,cn=organizational roles,o=system,cn=cordys,cn=defaultInst,o=vanenburg.com</string> <string>cn=everyoneInsystem,cn=organizational roles,o=system,cn=cordys,cn=defaultInst,o=vanenburg.com</string> .... </role> <cn> <string>ann</string> </cn> <objectclass> <string>top</string> <string>busorganizationaluser</string> <string>busorganizationalobject</string> </objectclass> </entry> </old> </tuple> <tuple> <old> <entry dn="cn=SYSTEM,cn=organizational users,o=system,cn=cordys,cn=defaultInst,o=vanenburg.com"> <authenticationuser> <string>cn=SYSTEM,cn=authenticated users,cn=cordys,cn=defaultInst,o=vanenburg.com</string> </authenticationuser> <description> <string>System</string> </description> <role> <string>cn=systemAdmin,cn=organizational roles,o=system,cn=cordys,cn=defaultInst,o=vanenburg.com</string> <string>cn=everyoneInsystem,cn=organizational roles,o=system,cn=cordys,cn=defaultInst,o=vanenburg.com</string> </role> <cn> <string>SYSTEM</string> </cn> <objectclass> <string>top</string> <string>busorganizationaluser</string> <string>busorganizationalobject</string> </objectclass> </entry> </old> </tuple> </GetUsersForRoleResponse>