Need help authenticating to new Atlassian Access methods -- Google w/ Identity Provider and GSuite Sync Enabled

Hi there!

Looking to get some help, in regards, to setting up a proper authentication method to retrieve data via the User management REST API. We have been provided with a trial to try the service, Atlassian Access, (everyone customer has I think?) and while I get a 200 success and all user information, I am unable to retrieve user specific info. It took quite a bit to source accurate info on how to authenticate to the API, the posted methods in the guides are not accurate, I am fully aware that my script might still be the issue. On the other hand, this might be related to services that we still may need to enable on our administrative end. I will post my script below, but also receive accurate info on all of the services that need to be enabled in Atlassian, on top of, the script itself would be great.

#authentication to Atlassian
curl -D- \
  -u $email:$token \
  -H 'Content-Type: application/json' \
  -X GET \
  -k \
  https://$org.atlassian.net/rest/api/3/users/search


# failing call to user profile
curl --request GET \
  --url 'https://api.atlassian.com/users/user_id/manage' \
  --user '${email}:${token}' \
  --header 'Content-Type: application/json'

Thanks!

Devon

1 Like