DaRoGa
DaRoGa

Reputation: 2404

Micorsoft Graph API Responsibilites Update

I am attempting to update the responsibilities field on a user account through the Graph API.

I am attempting to do this using the following request:

PATCH https://graph.microsoft.com/v1.0/users/<upn>

{
    "responsibilities":[
        "ApprovalLimit:0"
    ]
}

When i make this request, I get the response:

{
    "error": {
        "code": "-2147024809, System.ArgumentException",
        "message": "Invalid attribute update\r\nParameter name: attributeUpdates",
        "innerError": {
            "request-id": "1be313f3-880b-47de-858d-1bea74951715",
            "date": "2017-03-06T09:29:21"
        }
    }
}

However, when I attempt to update the schools collection, which is also a String collection, this works without issue.

This is the same with both beta and v1.0 and also with the /me endpoint rather than /users/<upn>.

Is this a bug within the API?

Any ideas about how to set this?

Thanks in advance.

Upvotes: 0

Views: 134

Answers (1)

Fei Xue
Fei Xue

Reputation: 14649

I am also able to reproduce this issue too. Based on the error message, it seems this attribute is not support update at current version of Microsoft Graph.

If you want to this attribute is update-able, I suggest that you submit the feedback from here.

Upvotes: 1

Related Questions