Sitefinity Access Reporting
sitefinity | 2023-12-20
Purpose and Use Cases
The purpose is to create an Access Report of Sitefinity CMS - with multisite instances for client.
We know that administrator can set Permission in Sitefinity Page, either by role or user entity.
Each role has a group of user entity.
The challenge is that to query user and user within the role that has permission to pages across multi-sites.
Use cases to include in the report:
- Page permission added user
- Page permission added role
- Application column to list full url of pages
- Either create, delete, edit content or modify will consider as 'has permission'
- Take only published and live page
- Exclude backend page and omit redirect and group page.
Solution
Checkout my sample gist code!
- Loop through pages in multi-sites
- Get the required pages
- Query the operation / permission
- The data queried is either user role id / user id
- Gather users via user id and user role
- Structure report in CSV format
References
- Sitefinity KB - How to get all pages from a specific site in a multisite project
- Sitefinity KB - How to get all the sites in Sitefinity Multisite using API
- Sitefinity KB - How to get all roles names