Can I get list of 'assign Permission specific users and group' programmatically ?

hj.cho 1 Reputation point
2021-10-08T08:10:55.203+00:00

Can I get the contents of the red box in the picture below programmatically (C# or C++)?
What should I do if I can?

I use the following code but i can't get information

----- my code (roughly) -----
// I'm using MIP SDK(Microsoft Information Protection)
var handler = Task.Run(async () => await fileEngine.CreateFileHandlerAsync(filePath, filePath, IsAuditDiscoveryEnabled)).Result;
var pd = handler.Protection.ProtectionDescriptor;
var ur = pd.UserRights; // ===> !!!

--------------------------------

'Edit sensitivity label' at 'Azure Portal'

138740-image.png

Azure Information Protection
Azure Information Protection
An Azure service that is used to control and help secure email, documents, and sensitive data that are shared outside the company.
516 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 33,801 Reputation points Microsoft Employee
    2021-11-19T20:50:36.827+00:00

    There isn't a group that specifically contains all authenticated users, but you can create a group containing all users within a tenant using a membership rule. https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-membership

    There aren't any official samples for this that I'm aware of, but there is actually a C# example of querying all users in a tenant this similar thread.

    Let me know if this is what you are looking for and if I understood the ask correctly. I would be happy to discuss this further.

    0 comments No comments