question

HannesRoever-5825 avatar image
0 Votes"
HannesRoever-5825 asked bgervin edited

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

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

michev avatar image
0 Votes"
michev answered

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

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.

HannesRoever-5825 avatar image
0 Votes"
HannesRoever-5825 answered michev commented

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?

· 1
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.

The SCC cmdlets should run fine on Core with the 2.0.4 version of the EXO PS module, try that. You still need to run it in a user context though.

0 Votes 0 ·