XML API Tips: User Manager Associations
A common workflow for Adobe Connect admins is to associate users to managers via the UI.
In the UI, you can navigate to the Administration > Users and Groups > {select a user} > Edit Team Members area to select users who will be direct reports of that manager.
This information will show up in the ‘My Profile‘ > Organization area for the user, where they will be able to see their Manager information (if they have a manager set) and their Team Members (if they are a manager themselves).
But with the XML API, this process is undocumented. Here’s how you accomplish this:
How do I associate a user to a Manager?
http://connectURL/api/xml?action=user-manager-update&manager-id=XXXXXXX&principal-id=XXXXXXX
Where:
action=user-manager-update
manager-id= principal-id of user who is going to be the manager
principal-id= principal-id of the user who is being assigned a manager
Note:
The user-manager-update call is UNDOCUMENTED.
Results:
<results>
<status code=
"ok"
/>
</results>
How do I disassociate a user from a Manager?
http://connectURL/api/xml?action=user-manager-update&manager-id=XXXXXXX&principal-id=XXXXXXX
Where:
action=user-manager-update
manager-id= the account-id (‘7’ if an on-prem/Licensed customer or a longer numeric value for an Adobe Hosted customer)
principal-id= principal-id of the user who is being assigned a manager
Note:
The user-manager-update call is UNDOCUMENTED.
Results:
<results>
<status code=
"ok"
/>
</results>
The below IS documented, however it is applicable to this post, so I will include it:
How do I list all direct reports of a Manager?
http://connectURL/api/xml?action=principal-list&filter-manager-id=XXXXXX
Where:
action=principal-list
filter-manager-id= the sco-id of the user who is the manager
Results:
<results>
<status code=
"ok"
/>
<principal-list>
<principal principal-id=
"XXXXXXXXX"
account-id=
"XXXXXXXXX"
type=
"user"
has-children=
"false"
is-primary=
"false"
is-hidden=
"false"
manager-id=
"XXXXXXXXX"
training-group-id=
""
>
<name>USER NAME (FIRST AND LAST)</name>
<login>USER LOGIN VALUE</login>
<email>USER EMAIL VALUE</email>
<display-uid>USER LOGIN VALUE</display-uid>
</principal>
…
</principal-list>
</results>