Get Membership Information operation
The Get Membership Information operation obtains the membership information of a user.
The following table describes the elements for the <items> XML element and adapter request for the Get Membership Information operation:
Elements for the <items> XML element and adapter request for the Get Membership Information operation
The following figure shows a sample adapter request for the Get Membership Information operation:
Adapter request for the Get Membership Information operation
<active-directory-request>
<target>
<host>vm-w23-rds19</host>
<user-name>administrator</user-name>
<password>Admin</password>
</target>
<commands>
<command>
<active-directory-command>Get Membership Information
</active-directory-command>
<object-class>User</object-class>
<object-distinguished-name>CN=mc01,CN=Users,DC=vm-w23-rds19,
DC=local</object-distinguished-name>
<parameters>
<expand />
<server>vm-w23-rds19</server>
<user-name>administrator</user-name>
<password>Admin</password>
</parameters>
</command>
</commands>
</active-directory-request>
<target>
<host>vm-w23-rds19</host>
<user-name>administrator</user-name>
<password>Admin</password>
</target>
<commands>
<command>
<active-directory-command>Get Membership Information
</active-directory-command>
<object-class>User</object-class>
<object-distinguished-name>CN=mc01,CN=Users,DC=vm-w23-rds19,
DC=local</object-distinguished-name>
<parameters>
<expand />
<server>vm-w23-rds19</server>
<user-name>administrator</user-name>
<password>Admin</password>
</parameters>
</command>
</commands>
</active-directory-request>
The following figure shows the adapter response for the sample Get Membership Information operation:
Sample adapter response for the Get Membership Information operation
<active-directory-response>
<metadata>
<status>success</status>
</metadata>
<target-output host="vm-w23-rds19">
<metadata>
<os-id>Windows 2003</os-id>
<os-version>5.2 Build 3790 Service Pack 2</os-version>
<status>success</status>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>dsget user "CN=mc01,CN=Users,DC=vm-w23-rds19,
DC=local" -memberof -expand -s "vm-w23-rds19"
-u "administrator" -p "Admin"</command>
<line-count>14</line-count>
<execution-milliseconds>3687</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
</metadata>
<output>
<line index="1">Attempting to connect to remote host...</line>
<line index="2">Initialising rctrlx server component...</line>
<line index="3">Executing remote application: cmd /c dsget user
"CN=mc01,CN=Users,DC=vm-w23-rds19,DC=local" -memberof -expand -s "vm-w23-rds19"
-u "administrator" -p "Admin"</line>
<line index="4">Remote application process ID: 8384</line>
<line index="5">"CN=local-distribution-group,
DC=vm-w23-rds19,DC=local"</line>
<line index="6">"CN=universal-distribution-group,
DC=vm-w23-rds19,DC=local"</line>
<line index="7">"CN=global-security-group,DC=vm-w23-rds19,
DC=local"</line>
<line index="8">"CN=global-distribution-group,DC=vm-w23-rds19,
DC=local"</line>
<line index="9">"CN=Test-Group-1,DC=vm-w23-rds19,DC=local"</line>
<line index="10">"CN=Domain Users,CN=Users,DC=vm-w23-rds19,
DC=local"</line>
<line index="11">"CN=LDG-2,DC=vm-w23-rds19,DC=local"</line>
<line index="12">"CN=LDG-1,DC=vm-w23-rds19,DC=local"</line>
<line index="13">"CN=Users,CN=Builtin,DC=vm-w23-rds19,
DC=local"</line>
<line index="14">Remote application exited with code: 0</line>
</output>
</command-output>
</commands-output>
</target-output>
</active-directory-response>
<metadata>
<status>success</status>
</metadata>
<target-output host="vm-w23-rds19">
<metadata>
<os-id>Windows 2003</os-id>
<os-version>5.2 Build 3790 Service Pack 2</os-version>
<status>success</status>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>dsget user "CN=mc01,CN=Users,DC=vm-w23-rds19,
DC=local" -memberof -expand -s "vm-w23-rds19"
-u "administrator" -p "Admin"</command>
<line-count>14</line-count>
<execution-milliseconds>3687</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
</metadata>
<output>
<line index="1">Attempting to connect to remote host...</line>
<line index="2">Initialising rctrlx server component...</line>
<line index="3">Executing remote application: cmd /c dsget user
"CN=mc01,CN=Users,DC=vm-w23-rds19,DC=local" -memberof -expand -s "vm-w23-rds19"
-u "administrator" -p "Admin"</line>
<line index="4">Remote application process ID: 8384</line>
<line index="5">"CN=local-distribution-group,
DC=vm-w23-rds19,DC=local"</line>
<line index="6">"CN=universal-distribution-group,
DC=vm-w23-rds19,DC=local"</line>
<line index="7">"CN=global-security-group,DC=vm-w23-rds19,
DC=local"</line>
<line index="8">"CN=global-distribution-group,DC=vm-w23-rds19,
DC=local"</line>
<line index="9">"CN=Test-Group-1,DC=vm-w23-rds19,DC=local"</line>
<line index="10">"CN=Domain Users,CN=Users,DC=vm-w23-rds19,
DC=local"</line>
<line index="11">"CN=LDG-2,DC=vm-w23-rds19,DC=local"</line>
<line index="12">"CN=LDG-1,DC=vm-w23-rds19,DC=local"</line>
<line index="13">"CN=Users,CN=Builtin,DC=vm-w23-rds19,
DC=local"</line>
<line index="14">Remote application exited with code: 0</line>
</output>
</command-output>
</commands-output>
</target-output>
</active-directory-response>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*