-
Notifications
You must be signed in to change notification settings - Fork 126
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
Receiving different exceptions when trying to update the "additionalData" map from "PasswordProfile" from "User" resource #2056
Comments
Thanks for raising this @GBadila I believe the first example is appropriate in adding a property, however the API is failing as the type does not accept/support the new property name. Any chance you can confirm if what you are trying to achieve by sharing a json representation of the desired object? According to the API docs, the only supported properties by the api are documented at https://learn.microsoft.com/en-us/graph/api/resources/passwordprofile?view=graph-rest-1.0 |
Hi @andrueastman!
But based on the latest version of the Java SDK for Microsoft Graph it looks like there are 6 setter methods.
Which made me think that I could use that
So basically, I'm trying to add an entry String:String (key:value) to the additional data map, which errors out as mentioned in my issue. |
Unfortunately, in this scenario I don't believe it is possible to add extra properties to the The |
Then if it's not meant to be used by adding additional properties by the user why let the setter method under the public access modifier? Or if it has to be public why not attached a comment to let people know is not meant to be used by the users? It's a bit confusing as it is at the moment. |
Expected behavior
Updating the map "additionalData" from "PasswordProfile" from "User" resource by adding some entries.
I'm trying to add a field called "password-reset-verify-token" of type String.
I'm using:
What could cause my issues? And is there any documentation regarding the naming conventions regarding the namings and formats of the data from "additionalData" map?
Thank you!
Actual behavior
1. First behaviour
String-String
) which results in: com.microsoft.graph.models.odataerrors.ODataError: Expected property 'password-reset-verify-token' is not present on resource of type 'PasswordProfile'Code
Outcome
2. Second behaviour
String-Object
) which results in: java.lang.IllegalStateException: Dangling name: password-reset-verify-tokenCode
Outcome
Steps to reproduce the behavior
See the code snippets attached above
The text was updated successfully, but these errors were encountered: