Using SMLets Beta 3 Post #10–Getting a User’s Manager and a Manager’s Reports

Using SMLets Beta 3 Post #10–Getting a User’s Manager and a Manager’s Reports

  • Comments 3
  • Likes

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.

image

To get the user’s manager you do this:

clip_image002

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.

clip_image004

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • <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&#39;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> &nbsp;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>@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>