
Hi there, I'm quite new to SharePoint/Azure/Powershell, so I'm not sure if I'm best off posting this here or on the Powershell/SharePoint community forums, apologies if that's the case.
We currently have client SharePoint sites hosted on our O365 tenant, with access to each site to be rolled out to each of our respective clients shortly. Initially, only the senior management of each client will have access to the sites, however as time goes on it's likely we'll be adding everyone else too. As we're a small company, to streamline the new user process and save us having to add each and every individual staff member, we've been considering using a Flow to automate user access instead, with the goal of adding authenticated external users without much real input from administrators other than a simple approval/rejection process.
The flow as follows:
The plan is as follows:
Step 4 is where I'm a little unsure in regards to what to do if the request is approved - I've written a little Powershell script below which nearly achieves what I'm going for, in that it creates an external user PnP Group and PnP Role Definition (If there isn't one already), pulls what's in the "E-mail" fields on the "Employee Access" list and runs Add-PnPUsertoGroup to pull the users to the PnP group, which then sends the users an email with a link to the SharePoint site, allowing them to access it. However:
Script as follows:
Any guidance would be appreciated, and please let me know if any other details are required.
Thank you!
Hi all,
Please disregard this duplicate thread, question has been answered here:
Thanks!