Skip to main content
Contributor
August 26, 2022
Solved

Get all groups for a given user

  • August 26, 2022
  • 2 replies
  • 0 views

Hello All,

It might sound like a simple question but I could not find the code in snippet or elsewhere of how to grab in a rule a list of all groups a user is part of.

Could someone share how to do that ?

Thank you

Matthieu

Best answer by DanielWillis

Try brapi.Security.Admin.GetUser(si,username).ParentGroups

2 replies

Veteran
August 26, 2022

Hello,

Please leverage "Security Audit Reports (SAR)" from MarketPlace

 

NidhiMangtani_0-1661503767063.png

 

Contributor
August 29, 2022

Try brapi.Security.Admin.GetUser(si,username).ParentGroups