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

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

1 comment

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

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.

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
Published Oct 04, 2018 in Statuspage

Statuspage email customization is here! 🎉

  Hi Community friends! Just popping in to tell you that email customization (one of our most requested features!) is now live for all Statuspage customers. You’ve created a status page t...

205 views 4 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you