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
  • thx you so much ... this is exactly what i needed ... i repeat myself : great Job !

  • Hi Travis, sorry for posting this question here, but since I can't find an answer for this anywhere, decided to try asking here.

    I am getting an error during SCSM 2012 installation, giving this message:

     An error occurred while executing a custom action:_GrantLocalPermissionsToWCSAccount.11EE91AB_EABF_48A6_9973_4DCD73190AC6

    on the setup log I can also find this

    The active directory object found on path xxxx is not a recipient.

    Do you have any clue on what could this be?

    Thanks in advance.

    Vladimir

  • @Vladimir -

    Try posting your question on the forums:

    social.technet.microsoft.com/.../threads