Hello @Asad Ghumman ,
Thanks for reaching out and apologize for delayed response.
You can assign, list and manage azure roles using the Azure portal, Azure PowerShell, Azure CLI, Azure SDKs, or REST APIs
Check out the following articles for detailed steps for how to assign roles. Hope this helps.
Assign Azure roles using the Azure portal
Assign Azure roles using Azure PowerShell
Assign Azure roles using Azure CLI
Assign Azure roles using the REST API
List Azure role assignments using the REST API
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.