Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

API: Get group members

陣内 加織(Kaori Jinnai) June 25, 2023

Hi,

I have a problem about API: Get group members.

I made by Python for code but get 401 error following. 

***********************************************

"message": "Client must be authenticated to access this resource.",
"status-code": 401

***********************************************

  • application execution environment : windows10, jira-software-cloud
  • Token is embedded on the python code.

Can you help me??

 

2 answers

0 votes
Nina Gholizadeh-Afschari_mgm_
Atlassian Partner
February 6, 2025

Hi,

I wanted to let you know that the functionality you're looking for is available with Group Master for Jira (Data Center)!

You can check it out here:
Group Master for Jira - Data Center

In addition to managing group members, Group Master offers several advanced features. Give it a try.

Cheers,
Nina

0 votes
Aron Gombas _Midori_
Community Champion
June 26, 2023

Status code 401 means that your request is not authenticated correctly.

If you send the request using CURL, does it work?

(I am asking it because I think it is easier to make sure that your username and token are valid and correctly encoded to the BASIC auth header with CURL, and then look at the Python code only if you succeeded with CURL.)

陣内 加織(Kaori Jinnai) June 26, 2023

Hi Aron,

Thank you for your reply,

Yes, I understand about 401 meaning which is authenticated error.

It is use Python.

 

Following is excerpt...

**********************

 
auth = HTTPBasicAuth("xxxxi@abc.com","xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
headers = {
  "Accept": "application/json"

query = {
'groupId': '{XXXXXXXXXXXXXXXXXXXXX}'
}

**********************

 
But I try with CURL once.
Best,
Aron Gombas _Midori_
Community Champion
June 26, 2023

Also, based on the documentation, this end-point requires Jira admin permissions:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups/#api-rest-api-3-group-member-get

So, is the user with the given email address ("xxxxi@abc.com" in your example) a Jira admin?

陣内 加織(Kaori Jinnai) June 26, 2023

Yes, my account is in site-admin and jira-admins-team-nnnnnnnnnnnnnnnnn.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events