Custom Security Attribute Methods do not work as documented #2481
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
Describe the bug
According to the official Microsoft documentation, one can assign custom security attribute values using the following code:
This is apparently the C# equivalent of the following HTTP PATCH request:
Whilst I have successfully utilised the Graph Explorer and run an HTTP PATCH request for custom security attributes without incident, my C# code does not work. Instead, the client throws the following error:
Expected behavior
I expected that the below code (my code) would work as documented; namely that it would return a 204 No Content result, and not an error.
I have attempted this using both Graph and Graph.Beta packages; neither works.
How to reproduce
Use the .NET SDK (C#) to issue a PATCH request to the Graph API, to add a Custom Security Attribute Value to a user on a tenant. In fact, I even tried the actual code sample provided by Microsoft, and it didn't work either.
I reiterate that using Graph Explorer to make the HTTP request directly works just fine, so this is not a permissions issue.
SDK Version
5.52.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: