I am trying to Add/Remove Application Role in AzureAD using VisualStudio/C#/GraphAPI. I can successfully add user to ApplicationRole but Remove(or Delete) role doesn't work.
I researched on internet and it seems an issue with AzureAD graph API itself. check:
However, it's an old post so not sure if any workaround is available now.
Any help is appreciated to fix this issue.
I can remove the application role with follow code.
The following is my detail test demo code
1.get access token
2.Init the graphclient.
3.create application and service principal
4.add role assginments
5.remove the role from user