-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Service Principal add or remove password credential fails #1290
Comments
hi @xccc-msft could you pls have a look? thakns |
@paulojohnj Would you please share some code snippet and the version of SDK you are using now? Thanks. |
SDK version: 1.36.3 Working initial service principal create call:
Failing update with new credential call:
Removing a credential via the update path has a similar error. Working graph api based add credential call:
It appears the graph api call goes to a
If there is anything else I need to provide please let me know. |
@paulojohnj Thanks for sharing the details! I will try to reproduce from my end and get back to you. |
@paulojohnj Sorry for late update. As the swagger of GraphRBAC is not updated for the new APIs of credentials related, would you like to have a try on msgraph-sdk-java. It has latest Graph APIs support by service team directly. Thanks. |
Currently a service principal update that either adds or removes a password credential fail, complaining about an additionalProperties field.
In addition, the api call that these calls are making appears to be incorrect, making a PATCH request. When adding or removing a password the graph api appears to require a POST call to a differing endpoint (the graph api docs note that the PATCH request is no longer valid for add or remove).
This was validated by using the graph api sdk directly, which was able to make the add/remove request directly.
While in the graph sdk it appears that
The text was updated successfully, but these errors were encountered: