Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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