Hi evreone.
im using doc. for API - https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-user-get
if i try to get value 'emailAddress' with request,
i get an error - KeyError: 'emailAddress'
but if i try to get value 'active or displayname or any' with it
i get correctly response
response = requests.request("GET", f'{url}/rest/api/2/users', headers=headers, auth=auth)
print(response.json()[0]['active']) #get True/False - it's ok
print(response.json()[0]['displayName'])#get username - it's ok
print(response.json()[0]['emailAddress']) #but! get KeyError: 'emailAddress'
maybe me make mistake ?
I suggest checking if the user account has a privacy setting that restricts it from being shared with the public, which might affect whether the email address can be retrieved.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
no, everything is very easy =)
my mistake was that I was trying to get email addresses for an account in the app
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.