Forum Discussion
How to Add a new user in Project Server 2016 via Powershell or Code
M.A. Farooqui Have you tried https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/add-pnpusertogroup?view=sharepoint-ps? https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps and give it a try.
I am able to add user in SharePoint sites any group with PnP script and via Normal native Powershell.
But ....I am unable to add 1 specific user in Project Servers 2016's Users Page-> Add New User.
….here account name of that user is not being looked up by project Server as shown in screenshot.
Does anyone knows how to add powershell in Project Server's User page.
Thanks
- Paul_MatherAug 30, 2020MVP
Hello M.A. Farooqui ,
From memory I don't think this is possible using CSOM, I think you will need to use the PSI: https://docs.microsoft.com/en-us/office/client-developer/project/project-psi-reference-overview
The PSI can be used in PowerShell scripts or compiled code.
Paul