Prevent project owner from changing himself in PWA 2016 RRS feed

  • Question

  • Hello All,

    One of our clients asked to prevent project owners from changing themselves (change Owner field value in project details page for example) in PWA 2016.

    Is there a way to make this happen? and how?


    Wednesday, March 21, 2018 8:57 PM

All replies

  • Hi Ayman,

    It requires to implement a specific security setting on a specific custom field, which cannot be done with a standard configuration. It would be custom js code called by a hidden content editor webpart.

    Hope this helps,

    Guillaume Rouyre, MBA, MVP, P-Seller

    Wednesday, March 21, 2018 9:09 PM
  • Thanks Guillaume,

    Is it possible if you point me to an article or something on how to implement this?

    Wednesday, March 21, 2018 9:27 PM
  • Basically you add a web part to execute the JS script on the pages where user can change ownership.  When the page refresh the javascript gets execute to test and prevent the rest of page from executing if ownership is changing.

    Here is a link on embedding javascript.

    Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
    Blog contains my field notes and SQL queries

    Thursday, March 22, 2018 3:56 AM
  • Here are a bunch of articles which show how to set security rules on PDP based on Project security model (categories and groups).

    Basically you can put all the custom fields you want to secure in a PDP, create a category for the users not autorized to update or see those fields and use the following procedure (to be adapted):

    You could also use target audience:

    Hope this helps,

    Guillaume Rouyre, MBA, MVP, P-Seller

    Thursday, March 22, 2018 6:57 AM