Share via

Get Label Actions with Graph API with same output like Security Center Power Shell?

Hannes Roever 21 Reputation points
2021-03-24T12:59:37.123+00:00

Hi,

via a Web API I want to read the rights a user/mail recipient has to read a Microsoft Information Protection Label. The information I need is stored in the value with key LabelActions when using the PowerShellApproach:

Install-Module ExchangeOnlineManagement
Import-Module ExchangeOnlineManagement
Connect-IPPSSession -UserPrincipalName *
Get-Label -Identity "*
" | Format-List

This works fine, however for my usecase I want to get this information via Graph API. Is there a request that makes this possible? There seem to be options like this to get this:

https://learn.microsoft.com/en-us/graph/api/informationprotectionlabel-evaluateapplication?view=graph-rest-beta&tabs=http

Can I get the LabelActions via graph and if so what would be the correct request? Thanks!

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.

Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

Vasil Michev 127K Reputation points MVP Volunteer Moderator
2021-03-24T13:28:43.56+00:00

There's no Graph API support for that yet, sorry.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Hannes Roever 21 Reputation points
    2021-03-24T14:36:18.24+00:00

    Thanks for the quick reply, thats what I was afraid you'd say. :-) Any way to run powershell with the ExchangeOnlineManagement Extensions within a .net core application that is not running in a windows environment?

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.