Resolve directory users that Azure ClassicAdministrators

Super Admin 0 Reputation points

I'm trying to list all the permissions of users in an Azure subscription using Microsoft.Authorization API and I faced an issue with the ClassicAdministrators API.
The API returns the user's email address and PUID and since the email is not reliable and PUID is inaccessible there is no way to identify the directory user.

I tried several ways to get a solution to this issue but without success so far.

Graph-API said that the PUID is obsolete and that the Authorization API should return the User's ObjectId instead.
I need to get the User ObjectId for Classic Administrators in an Azure subscription while authenticated as an application.
Same as I do for getting the Azure Authorization RoleAssignments.

Can someone fix the ClassicAdministrators API or offer a solution for this issue?
Thank you,

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
451 questions
Microsoft Graph Azure AD API
Microsoft Graph Azure AD API
A Microsoft API that queries the user's profile, finds other users, manages organizational relationships, tracks assignments, or creates original solutions that incorporate existing organizational data.
253 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,206 Reputation points

    Hello @Super Admin ,

    Thanks for reaching out.

    The ClassicAdministrators API only returns email address and PUID as of now.


    I would recommend you to please comment and/or up-vote the below user voice items to increase the priority of feature implementation.