planningcenter / developers

Planning Center API docs and support
https://developer.planning.center/docs/
85 stars 8 forks source link

How do I get attendance data for archived groups? #1203

Closed j700vulcanpriest closed 2 months ago

j700vulcanpriest commented 2 months ago

Related Product Which product is this question related to?

Groups

Describe the question I'm trying to access attendance data for a group using /groups/v2/events/{eventID}/attendances. When the group is currently active, it works fine, returning an array of attendance objects. The instances I've tried where the group has been archived, it returns an error status: "404".

What have you tried that worked? The endpoint works on a group that has not been archived.

What have you tried that didn't work? When the group is archived, it returns 404.

Searching seems to indicate that archiving a group still retains the attendance data for the group. And in the report section, the attendance shows the historical data. So I'm not sure if this is a bug or maybe an optimization to filter out old attendance data.

Additional context

I have..

americanmouths commented 2 months ago

Hi @j700vulcanpriest! This doesn’t appear to be a bug or an optimization, but a permissions issue. Only people with administrator permissions can access attendance data for archived groups.

I'm going to close this issue but if you are authenticated as an administrator and still having trouble, please feel free to open another issue.

j700vulcanpriest commented 2 months ago

ok, great, thank you!