List users API doesn't return users/ID

Hi All,

I am trying to return the user ID and name from the List Users API, I am using the link below:

https://developer.pagerduty.com/api-reference/reference/REST/openapiv3.json/paths/~1users/get

If you checked the schemas/response example it is as below:

“users”: [
{
“id”: “PXPGF42”,
“type”: “user”,
“summary”: “Earline Greenholt”,

However when I add the API key to this example and try it, it doesn’t return the user ID, I am getting the name, e-mail, … and the others in the schema.

So not sure if I am doing something wrong or there is limitation for the dev account on what it returns?

Thank you for your help!

Hi Ayman,

I tried this request myself and I see the user ID being returned in the payload after the user’s notification rules and closer to the end of the response rather than at the beginning like the documentation example shows. There is no limitation that would prevent you from receiving the user ID and all users will have an ID value.

If you are still unable to return the user ID via the List Users endpoint, please reach out to us at support@pagerduty.com and we’d be happy to take a closer look at your request.

Cheers,

Cassie Champagne
Technical Support Specialist
PagerDuty Support

1 Like

@cassie.champagne you are right, I missed that and thought it belong to different level!

Thank you so much for your help, appreciate it!