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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to update member using REST API

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 Oct 01, 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
Community showcase
Published in Trello

📹 What is Trello?

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...

759 views 13 30
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you