Open antoniom opened 3 months ago
@antoniom, thank you for raising this issue. After investigations, I found out that the service is returning an undefined/undocumented value (unkown
) for the property userPurpose
.
Based on the documentation here https://learn.microsoft.com/en-us/graph/api/resources/mailboxsettings?view=graph-rest-1.0#userpurpose-values, the value unkown
is not among the list of documented enums.
It is also not specified in the OpenAPI file used to generate this particular service in the SDK.
Unfortunately for API related issues/questions we are not best placed to give an answer. Kindly raise an issue here https://developer.microsoft.com/en-us/graph/support so that the API owner can respond to it.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
Describe the bug
I am trying to update the
mailboxSettings
of a user via the following scriptAnd I receive the following exception
MailboxSettings.php(121) -> points to UserPurpose which is a readonly value and shouldn't be set.
If a try to set it e.g.
I get the error,
the property 'userPurpose' was specified but is not supported with this request.
Expected behavior
The request to succeed without having to call
setSserPurpose
propertyHow to reproduce
Execute the above script
SDK Version
2.12.0
Latest version known to work for scenario above?
No response
Known Workarounds
Use msgraph-sdk-php-core and execute the request manually ie
Debug output
Click to expand log
```Configuration
PHP 8.3
Other information
No response