Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to update member using REST API

Deleted user September 30, 2020

When I tried to update a member, I got the result 401 "unauthorized member permission requested.".

The request I used to update the member is

PUT https://api.trello.com/1/members/{id}?fullName={full_name}&initials={initials}&username={user_name}&prefs%2Flocale={locale}&key={app_key}&token={token}

 

The token has been generated using the API


https://trello.com/1/authorize?expiration=never&scope=read,write,account&response_type=token&name={app_name}&key={app_key}

 

While generating token do we need to add any other scope to get the necessary access rights?

1 answer

1 accepted

0 votes
Answer accepted
Felix
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 1, 2020

Consent tokens, like the ones obtained via /1/authorize, are not allowed to modify member fields, like fullName, initials, username, or locale.

Only "authentication" tokens, like a web session cookie, are allowed to make these kinds of updates.

This is to ensure that updates to a member's profile and preferences are only made by the member themselves, and third-party applications don't override a member's personal preferences, or how a member appears to others in Trello.

If you provide some more info around your use-case, maybe we can find an alternative solution?

Hope this helps,

Felix

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events