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

Is Page Id and API Key is different for different users?

Fazuluddin Mohammed Dec 21, 2017

Is Page Id and API Key is different for different users?

1 comment

Matthijs van Leeuwen Atlassian Team Dec 21, 2017

The PageID is unique per page. The API key is unique per Team Member (admin user).

Fazuluddin Mohammed Dec 22, 2017

I want to retrieve the components belongs to particular user but I am not get the same from API, following are the steps which I followed.

User "John" has access to component A.

User "William" has access to component ABC.

https://api.statuspage.io/v1/pages/<page_id>/components.json?api_key=<John user API_KEY1>
Result JSON : {[ABC]}

https://api.statuspage.io/v1/pages/<page_id>/components.json?api_key=<William user API_KEY2>
Result JSON : {[ABC]}

In both the cases I got the same list of components in JSON even I use the different API Key, how to get the different actual components related to the particular user? Please provide the API URL for the same.

Fazuluddin Mohammed Dec 26, 2017

Any update?

Jake Bartlett Atlassian Team Dec 27, 2017

API keys are not associated with Page Access Users. API keys are tied to a Team Member (admin) account, so it's expected that you would get the same results when you pull a list of Components, no matter which API key you use (because both users are admins requesting a list of components on the page).

It sounds like you're trying to see which components a particular Page Access User has access to. Correct?

We don't have a straight forward way of doing this on a per-user basis, but you can pull a list of Page Access Groups and see which which components and users belong to them.

You can retrieve a list of Page Access Groups using this endpoint:

/pages/[page_id]/page_access_groups.json

This will include the component_ids of the components in the group as well as the page_access_user_ids of the users who are in that group. 

More on this here: http://doers.statuspage.io/api/v1/page_access_group/

Comment

Log in or Sign up to comment
Community showcase
Posted in Statuspage

Statuspage has 3 new integrations with Zendesk!

Incident response is a team sport, and customer support is an integral part of any team. While Ops is working hard to solve the problem at hand, support is on the front lines communicating with custo...

421 views 0 5
Join discussion

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