I have different roles of an app called power.
Each user has a role assigned and I want to be able to change a role to a user with graph api using graph explorer and connect it to power apps.
With this request i have the id role of all users but I don't know how to update them
GET https://graph.microsoft.com/v1.0/{id}/users?$expand=appRoleAssignments
If there is another api or connector with which I can do it and connect it with powerapps, it also works for me.
Yes, you should be sending a request as below (from Grant an appRoleAssignment for a service principal)
Endpoint
https://graph.microsoft.com/v1.0/servicePrincipals/{appObjectId}/appRoleAssignedTo{appObjectId}should be the Enterprise Application (service principal) object IDMethod
POSTRequest headers
Request Body
principalId= The user/group object IDresourceId= The Enterprise Application object ID, which is the same ID used in the endpoint{appObjectId}appRoleId= The app role ID, which can be found in the App Registration manifest