This is a pretty common ask so here is a quick blog post on how to get a User’s manager or a Manager’s reports using SMLets.
A users manger is a relationship between the user object and the manager’s user object.
The Relationship type name is: UserManagesUser. This is what the data model looks like in the Visio diagram.
To get the user’s manager you do this:
To get a manager’s reports you do this:
Note: I used the same Get-SCSMObject cmdlet as above to set $Omar by passing Omar’s username in the filter criteria.
<p>thx you so much ... this is exactly what i needed ... i repeat myself : great Job ! </p>
<p>Hi Travis, sorry for posting this question here, but since I can't find an answer for this anywhere, decided to try asking here.</p>
<p>I am getting an error during SCSM 2012 installation, giving this message:</p>
<p> An error occurred while executing a custom action:_GrantLocalPermissionsToWCSAccount.11EE91AB_EABF_48A6_9973_4DCD73190AC6</p>
<p>on the setup log I can also find this</p>
<p>The active directory object found on path xxxx is not a recipient.</p>
<p>Do you have any clue on what could this be?</p>
<p>Thanks in advance.</p>
<p>@Vladimir - </p>
<p>Try posting your question on the forums:</p>
<p><a rel="nofollow" target="_new" href="http://social.technet.microsoft.com/Forums/en-US/setup/threads">social.technet.microsoft.com/.../threads</a> </p>