Hi all,
in the page JSM project > Customers , you can see the list of users with their Status: "Invited" for those having received an invit email butwho did not accepted it yet, and "Active" for the ones who accepted the invitation.
I need to get the list of the one who are only "Invited" using a rest API. (I want to automate a reminder to these guys).
To do this, I use the API /rest/servicedeskapi/organization/{organizationId}/user
This call returns something like this for each user of the company:
{ "name": "fred",
"key": "fred",
"emailAddress": "fred@example.com",
"displayName": "Fred F. User",
"active": true,
...
}
I'm assuming that the field "active" is the one I'm looking for.
However the value of this "active" field is ALLWAYS true. Whatever the company, the user or it's actual status.
Am I using the wrong API? Anyone has an idea?
Thanks
Gwenaël
use this rest api end pint to get customer data.
https://xxx.atlassian.net/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer
remember, if needed you have to use the header
'X-ExperimentalApi: opt-in'
hope this helps!
Vijay
Thanks @Vijay Dadi : this request is giving the same result as my initial problem: all customers are flagged as "active": true in the json, eventhough their Status show "Invited" in the JSM project > Customer page.
So, either this active field is something different from the Status, or they have a bug.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use the rest api endpoint as below and see if you get the required response
https://xxx.atlassian.net/rest/api/3/user/search?username=.&includeActive=false&includeInactive=true
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Vijay Dadi .
I didn't try yet, but I think this would return the Jira users (ie my colleagues).
What I'm after is the list of customers of the Jira Service Management product.
Gwenaël
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.