none
Add a user to Project Online Security group using CSOM RRS feed

  • Question

  • Hi ,

    As we all knew that PSI will not support for Project Online. But I've a requirement to add the users to Project Online security groups (*** Programmatically).

    Is there any way to achieve it using CSOM?

    Thanks,

    Rajkumar.



    Monday, September 10, 2018 12:15 PM

Answers

All replies

  • Hello,

    Unfortunately Project CSOM doesn't provide the ability to manage security when using the Project permission mode. If you are using the SharePoint permission mode in PWA then you can use SharePoint CSOM to add users the the SharePoint groups.

    Paul


    Paul Mather | Twitter | http://pwmather.wordpress.com | CPS | MVP | Downloads

    Tuesday, September 11, 2018 7:33 AM
    Moderator
  • Thanks Paul for your response.

    We're using Project Permission mode. Is there any workaround with JSOM / ReST ?

    Tuesday, September 11, 2018 12:33 PM
  • Hello,

    Unfortunately not. Only the PSI has this capability.

    Paul


    Paul Mather | Twitter | http://pwmather.wordpress.com | CPS | MVP | Downloads

    Tuesday, September 11, 2018 12:48 PM
    Moderator
  • Hi Paul,

    Do you know how we can add users in SharePoint permission mode ?

    I tried to use web.EnsureUser method to add the user to a group. It worked but right after i add the user to the group i'm trying to assign the user to one of the project that i created. It always throws me an error UnknownCSOMUser. 

    Interestingly if the user access the PWA site then i get the user in the resource list and i can assign the user as the owner of the project. 

    Thanks

    Kiran

    Tuesday, October 1, 2019 7:21 PM