question

hjcho-1768 avatar image
0 Votes"
hjcho-1768 asked MarileeTurscak-MSFT edited

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

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
image.png (314.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered MarileeTurscak-MSFT edited

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://docs.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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.