Hi @Ron Weasley ,
Thanks for reaching out.
The error is not related to the user but to the application. Kindly look for application/SPN name with client ID: 'f04c77f3-530e-416d-a165-42304fb90583'.
Make sure to add proper RBAC role to above service principal before generating token.
Navigate to the subscription > Choose the subscription > Add Role assignment > User Access Administrator (You can assign any role you want > assign to the application SPN
and then generate the token using client credential flow
POST https://login.microsoftonline.com/<tenantID>/oauth2/v2.0/token
grant_type:client_credentials
client_id:<appID>
client_secret:<secret>
scope: https://management.azure.com/.default
Then I used this token to call Azure Management REST API.
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.