You should want to assign appRoles to users or groups. You can use the /appRoleAssignments
endpoint to grant appRoles to groups.
POST https://graph.microsoft.com/v1.0/groups/{id}/appRoleAssignments
Content-Type: application/json
Content-Length: 110
{
"principalId": "principalId-value",
"resourceId": "resourceId-value",
"appRoleId": "appRoleId-value"
}
principalId: your group id.
resourceId: Object ID of the application.
appRoleId: The id of the appRole you created.
If an Answer is helpful, please click "Accept Answer" and upvote it.