Hi Satish Kumar (EXT-Nokia), I wan to help you with this question.
There are multiple solutions for:
1.) Use Azure Resource Graph Explorer (search for the service in Azure via the search bar):
The Following Query will get you all existing assignments:
Resources
| where type == "microsoft.authorization/roleassignments"
| where properties.principalId == "<ServicePrincipalID>"
Another option is to use the Azure CLI:
az role assignment list --all --assignee <Pricipal_ID>
I hope this to solutions help you to answer your question.
If the reply was helpful, please don’t forget to upvote or accept it as an answer, thank you!