I am trying to assign a user to the azure active directory application through graph API. As per the documentation I have assigned the permission to my application and granted the admin consent. The following permissions are given to the application.
My graph API requests details ares
https://graph.microsoft.com/v1.0/users/user-id/appRoleAssignments
Request Body
{
"appRoleId": "00000000-0000-0000-0000-000000000000",
"principalId": "user-id",
"principalType": "User",
"resourceId": "objectId-of-service-principal"
}
The response from AD API still mentioning Permission being assigned was not found on application what other permissions do I need to give to the application to make the request work properly?


