Some users have access given to them to specific pages, e.g. team pages, 1-to-1s, and so on. When we offboard someone, it's a common issue that these pages aren't properly transferred to the offboarder's replacement (where valid, of course), leaving the IT team responsible to go through 20+ pages in the IT space to try and find where the user has had access that the new person may need.
We were hoping to speed this process up with API, such as perhaps this command:
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions/#api-wiki-rest-api-content-id-restriction-get
All we need is to find what restricted pages a specific user has access to. However, I am struggling to get it working for various reasons, both using curl and Python. I admit my relative coding inexperience may be showing here.
Has anyone engineered something like this, a (semi-)automated way of finding what locked-down pages someone has access to?