microsoftgraph / msgraph-sdk-dotnet

Microsoft Graph Client Library for .NET!
https://graph.microsoft.com
Other
695 stars 246 forks source link

Inconsistent usage of service principal #2558

Open zorgoz opened 3 months ago

zorgoz commented 3 months ago

https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/0944678a53d403eb3b4f1a6968129757dd745257/src/Microsoft.Graph/Generated/BaseGraphServiceClient.cs#L517

ServicePrincipalsWithAppIdRequestBuilder does not expose the same methods as ServicePrincipalsRequestBuilder. For example, there is no AppRoleAssignedTo in the former, whilst it is in the latter, and https://graph.microsoft.com/v1.0/servicePrincipals(appId='ab7752ff-3c3a-abcd-xyzw-d6c3349bf789')/appRoleAssignedTo works just fine.

andrueastman commented 3 months ago

Thanks for raising this @zorgoz

This is currently inhibited due to the large size of the openApi metadata which currently does not include child paths in alternate keys. This is related to https://github.com/microsoft/OpenAPI.NET.OData/issues/459