Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Error while removing a user from a group com.atlassian.idp.client.exceptions.UserNotFoundException Edited

request

curl --request DELETE --url 'https://laraveladminpanel.atlassian.net/rest/api/3/group/user?groupname=developers&accountId=5f59dd410e39680069ff435b' --user '[redacted]' --header 'Accept: application/json'

response

 {"errorMessages":["Возникла ошибка: com.atlassian.idp.client.exceptions.UserNotFoundException: {\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:Error\"],\"status\":\"404\",\"detail\":\"A user with ug:347ba8b3-9616-4688-8a35-1a6e89cffede doesn't exists\",\"errorType\":\"UserDoesNotExist\",\"message\":\"A user with ug:347ba8b3-9616-4688-8a35-1a6e89cffede doesn't exists\",\"data\":\"ug:347ba8b3-9616-4688-8a35-1a6e89cffede\"}"],"errors":{}}

but the user is in the 'developers' group also I have the authority to delete the group

request

curl --request GET \
--url 'https://laraveladminpanel.atlassian.net/rest/api/3/user/groups?accountId=5f59dd410e39680069ff435b' \
--user '[redacted]' \
--header 'Accept: application/json'

 response

[
{
"name":"Confluence",
"self":"https://laraveladminpanel.atlassian.net/rest/api/3/group?groupname=Confluence"
},
{
"name":"developers",
"self":"https://laraveladminpanel.atlassian.net/rest/api/3/group?groupname=developers"
},
{
"name":"jira-administrators",
"self":"https://laraveladminpanel.atlassian.net/rest/api/3/group?groupname=jira-administrators"
},
{
"name":"jira-software-users",
"self":"https://laraveladminpanel.atlassian.net/rest/api/3/group?groupname=jira-software-users"
},
{
"name":"test",
"self":"https://laraveladminpanel.atlassian.net/rest/api/3/group?groupname=test"
}
]

  

2 comments

Oauth

Request


https://auth.atlassian.com/authorize?audience=api.atlassian.com&client_id=[redacted]&scope=manage:jira-configuration&redirect_uri=https%3A%2F%2F06bf8a3f0a2a.ngrok.io%2Fcallback&state=1&response_type=code&prompt=consent

Response


{"code":"z9JyvNgmQIdrIZ-9","state":"1"}

Request


curl --request POST --url 'https://auth.atlassian.com/oauth/token' --header 'Content-Type: application/json' --data '{"grant_type": "authorization_code","client_id": "[redacted]","client_secret": "[redacted]","code": "z9JyvNgmQIdrIZ-9","redirect_uri": "https://06bf8a3f0a2a.ngrok.io/callback"}'

Response


{"access_token":"[redacted]","scope":"manage:jira-configuration","expires_in":3600,"token_type":"Bearer"}


Request


curl --request GET \
--url https://api.atlassian.com/oauth/token/accessible-resources \
--header 'Authorization: Bearer [redacted]' \
--header 'Accept: application/json'


Response


[{"id":"78a3a3e2-04c8-4491-a37a-a50835cad552","url":"https://laraveladminpanel.atlassian.net","name":"laraveladminpanel","scopes":["manage:jira-configuration"],"avatarUrl":"https://site-admin-avatar-cdn.prod.public.atl-paas.net/avatars/240/triangle.png"}]

Request


curl --request DELETE --url https://api.atlassian.com/ex/jira/78a3a3e2-04c8-4491-a37a-a50835cad552/rest/api/3/group/user?groupname=developers&accountId=5f59dd410e39680069ff435b --header 'Authorization: Bearer [redacted]' --header 'Accept: application/json'

 

Response


<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>401</status-code><message>Client must be authenticated to access this resource.</message></status>

Atlassian connect

Request

curl --request DELETE --url https://laraveladminpanel.atlassian.net/rest/api/2/group/user?groupname=developers&accountId=5f59dd410e39680069ff435b --user user@example.com:[redacted] --header 'Accept: application/json'

 

Reasponse


HTTP/2 404
server: AtlassianProxy/1.15.8.1
vary: Accept-Encoding
cache-control: no-cache, no-store, no-transform
content-type: application/json;charset=UTF-8
strict-transport-security: max-age=315360000; includeSubDomains; preload
date: Thu, 10 Sep 2020 22:41:02 GMT
atl-traceid: 429acb9d8e2c9399
x-arequestid: 25ac64cb-4c95-4cea-ba2b-3d139f419b99
x-aaccountid: 5f59ce74d2c77e0075b4fd90
x-xss-protection: 1; mode=block
timing-allow-origin: *
x-content-type-options: nosniff
micros-issuer: micros/edge-authenticator
set-cookie: atlassian.xsrf.token=[redacted]; Path=/; Secure
expect-ct: report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/global-proxy", enforce, max-age=86400

{"errorMessages":["Указанный пользователь не существует, либо у вас нет требуемых прав"],"errors":{}}

Comment

Log in or Sign up to comment
TAGS

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