Block Sign-in (disabled Users with privileges) with Graph API

Bronze Contributor

Hello,

 

Is there any permission or set of permissions that allow the disabling of a privileged user through the graph API

 

Thanks

2 Replies
Depends on the roles assigned. Generally speaking, you'd need a GA. as noted in the documentation:

A global administrator assigned the Directory.AccessAsUser.All delegated permission can update the accountEnabled status of all administrators in the tenant.
Thanks Yes but I wanted an application permission for a script so looking in the API permissions of the app