I am trying to get all servicePrincipals for a tenant using this API call, I want to expand it to get ServicePrincipals role assignment, I am using the following GET request but I am not getting the required response.
https://graph.microsoft.com/v1.0/servicePrincipals/?$expand
How do I check which all fields the API can return using expand?
This is the API link https://learn.microsoft.com/en-us/graph/api/serviceprincipal-list?view=graph-rest-1.0&tabs=http