Skip to main content
Contributor
Aug 26, 2022 6:59 AM UTC
Solved

Get all groups for a given user

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

Contributor
Aug 29, 2022 5:37 AM UTC

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

2 replies

Veteran
Aug 26, 2022 8:49 AM UTC

Hello,

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

 

NidhiMangtani_0-1661503767063.png

 

Contributor
Aug 29, 2022 5:37 AM UTC

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