How to handle in C# "GET /servicePrincipals(appId='{appId}')/appRoleAssignedTo"

Copper Contributor

How to handle this request in C# - "GET /servicePrincipals(appId='{appId}')/appRoleAssignedTo".

Since I am getting two different results, while executing these two APIs in Graph Explorer.
I need to implement the same in one of my C# project, where I am using "GraphServiceClient".
GET /servicePrincipals/{id}/appRoleAssignedTo
GET /servicePrincipals(appId='{appId}')/appRoleAssignedTo

Please help me on this.

Also code snippet is not available in Graph Explorer

SomasunderKA_0-1680712141841.png

 

0 Replies