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

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

set user properties via API (Postman / Python)

Hi all,

I am diving into user properties via API ; overall we want to use the user properties to add some user details which want automatically to be added to customfields when creating a ticket.

Therefore at first I need to figure out how to set the user properties via API:( )

However the example of Atlassian is very bad as they have added no "value" or better said they do not specify how {propertyKey} needs to be defined (according to other comments it must be JSON).

To start I want to use Postman but I have no clue how the {propertyKey} needs to be set

I have found 2 more or less articles which might help:
=> I failed to adapt the curl to postman or python script
=> last comment is that {propertyKey} needs to be JSON but I am missing the full call (maybe just to dump)

When using Postman, e.g. I am not sure if the {propertyKey} needs to be in URL or seperate in Body !?
I have tried e.g PUT https://<Atl_url>/rest/api/3/user/properties?accountId=<myuser>
and in Body:
{"value":"your value"}
and a lot of other tries - can somebody please assist - I guess I am failing at a pretty basic step here

1 answer

Figured out by myself:

Please be aware in Postman you need your Email address and your API code (not the encrypted which you need e.g. using Python!)

set user property:
{propertyKey} will be userproperty1 in the testings below

URL: https://<instance_url>/rest/api/3/user/properties/userproperty1?accountId=<UserAccountID>
BODY (format as raw): {"value":"your value"}

get ALL user properties:
Method: GET
URL: https://<instance_url>/rest/api/3/user/properties?accountId=<UserAccountID>

get SINGLE user property (here the one which created above)
Method: GET
URL: https://<instance_url>/rest/api/3/user/properties/userproperty1?accountId=<UserAccountID>

Suggest an answer

Log in or Sign up to answer
Site Admin

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