Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I’m am looking to build a PowerBI report to minimise the noise I get from the other departments around if an external user been invited to one of our SharePoint sites and if they have accepted the invite.
High level – what I hope to achieve is
I have tried using Source = OData.Feed("MYURL/_vti_bin/ListData.svc" and have been able to view the below 2 items, however not to the level of detail I require for the users to self-serve through a report.
The table ‘AccessRequests’
This contains who sent the reminder in this case me, with the original sender as ‘System Account’, but doesn’t contain the email or name the invitation has been sent to.
The table ‘UserInformationList’
This table shows me who has access, their email, but not which permission group they are part of
Any help greatly appreciated
Solved! Go to Solution.
Hi @v-jayw-msft
No these weren’t the solution i was looking for, however they are very useful for another project I’m working on.
I have 2 areas of interest for this report - Who has invitations pending, and who currently has access and their permissions level.
I have found the solution using SharePoint REST Services and OData
i.e. https://(mydomain).sharepoint.com/sites/(my site)/_vti_bin/ListData.svc
Item 1 - Access requests status (pending, revoked etc) - https://(mydomain).sharepoint.com/sites/(my site)/_api/web/lists/getbytitle('Access%20Requests')/items?$select=RequestedForUserId,RequestedForDisplayName,RequestedBy,RequestedByDisplayName,RequestedByUserId,ObjectRequestedTitleDisp,%20ApprovedByStringId,PermissionLevelRequested,RequestDate,Modified,Status,Expires,Created,RequestedForDisplayNameDisp,RequestedByDisplayNameDisp
Item 2 - Display the users who currently have access and their permissions settings https://(mydomain).sharepoint.com/sites/(my site)/_api/web/sitegroups
The status for item 1 for ease are as below
Status Code
Pending 0
Approved 1
Accepted 2
Denied 3
Expired 4
Revoked 5
Hi @Anonymous ,
Not sure if I understand you correctly, but you could get AccessRequests and UserInformationList table by connecting SharePoint List.
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-sharepoint-online-list
https://whitepages.unlimitedviz.com/2018/01/using-power-bi-to-report-on-person-fields-in-sharepoint/
Best Regards,
Jay
Hi @v-jayw-msft
No these weren’t the solution i was looking for, however they are very useful for another project I’m working on.
I have 2 areas of interest for this report - Who has invitations pending, and who currently has access and their permissions level.
I have found the solution using SharePoint REST Services and OData
i.e. https://(mydomain).sharepoint.com/sites/(my site)/_vti_bin/ListData.svc
Item 1 - Access requests status (pending, revoked etc) - https://(mydomain).sharepoint.com/sites/(my site)/_api/web/lists/getbytitle('Access%20Requests')/items?$select=RequestedForUserId,RequestedForDisplayName,RequestedBy,RequestedByDisplayName,RequestedByUserId,ObjectRequestedTitleDisp,%20ApprovedByStringId,PermissionLevelRequested,RequestDate,Modified,Status,Expires,Created,RequestedForDisplayNameDisp,RequestedByDisplayNameDisp
Item 2 - Display the users who currently have access and their permissions settings https://(mydomain).sharepoint.com/sites/(my site)/_api/web/sitegroups
The status for item 1 for ease are as below
Status Code
Pending 0
Approved 1
Accepted 2
Denied 3
Expired 4
Revoked 5
I have moved this forward slightly. I can now view the invites sent using the below. So point 1 partially covered, i had to build a table to link for the permission group names.
If anyone has a cleaner way of doing this i would greatly appreciatte the direction.
https://(myURL).sharepoint.com/sites/(subsite)/_api/web/lists/getbytitle('Access%20Requests')/items?$select=RequestedForUserId,RequestedForDisplayName,RequestedBy,RequestedByDisplayName,RequestedByUserId,ObjectRequestedTitleDisp,%20ApprovedByStringId,PermissionLevelRequested,Conversation,RequestDate,ID,Modified,Status,Expires,Created,AuthorId,FileSystemObjectType,RequestedListId,RequestedListItemId,RequestedForDisplayNameDisp,RequestedByDisplayNameDisp,PermissionDisp
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |