Is there a way to get the members of group?
Best Answer
-
Adam_Dzyacky Product Owner Contributor Monkey ✭✭✭✭✭Here's how to get an SCSM Group seen in the Library node and its members:
$scsmGroupName = "my custom scsm group name"$scsmGroup = Get-SCGroup -DisplayName $scsmGroupName$scsmGroup.members | select-object DisplayName
1
Answers
In any of these three cases, the runbook activity would be placed before the RA to evaluate the condition and then skip/do nothing.
I can get the group but not the members.
Since you can't get this relationship data in SCSM, your best bet is to live query Active Directory with the Active Directory PS module. If you're wondering how to get started, I think the following should get you started in the right direction. Apologies on the formatting.
So there is no way to use the "Groups" in the service manger Library, I have to use an AD group?
$scsmGroupName = "my custom scsm group name"