'What is the "k8s can-i" equivalent in azure graph

I've created an app and configured its permission as in this document: https://docs.microsoft.com/en-us/graph/migrate-azure-ad-graph-configure-permissions

Now, giving an access token, how can I list the permissions I have? I want something similar to can-i in k8s.



Solution 1:[1]

Now, giving an access token, how can I list the permissions I have?

As per the documentation, you can use Microsoft Graph REST API to list the permissions.

HTTP

GET https://graph.microsoft.com/v1.0/sites/{sitesId}/permissions

PowerShell

Import-Module Microsoft.Graph.Sites

Get-MgSitePermission -SiteId $siteId

You can refer to List permissions, Microsoft Graph permissions reference and az ad app permission

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1