Hi @Krupa Gundraju (Larsen & Toubro Infotech Limit) , you can use the POST https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments
endpoint of Microsoft Graph API to create RoleAssignment, like I tested locally.
Here is documentation for your reference: https://learn.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0&tabs=http
Hope this helps. Best Wishes.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.