Forum Discussion
nooruls143
Jan 08, 2022Copper Contributor
Add users as members to the project site automatically in Project Server 2016
Hi, I added some users in the Portfolio Viewers group to access the APIs to get the project data to the Power BI. They are able to access OData information without any issues. However, we have custom...
Paul_Mather
Jan 10, 2022MVP
Hello nooruls143,
This could be done, the easiest approach is running this on a schedule. If you want to run it automatically on site creation / project publish, you would need to build an event receiver application so that your custom code gets notified to execute etc. We wont be able to write the code for you here on this forum but here technically this is possible. If you search the web for adding users to SharePoint sites using CSOM you will find examples.
Paul