Hi @Krishna ,
Hope you are doing well,
I have tried to reproduce the the scenario to get assigned/granted permissions as per your requirement mentioned.
Please use the below endpoint and grant the required permissions before running endpoint as per this reference link
API :- https://graph.microsoft.com/v1.0/servicePrincipals/*******/oauth2PermissionGrants?$select=scope
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.