none
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?

    Thanks.

    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
    Moderator
  • 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.

    https://davidlozzi.com/2015/11/10/embedding-your-javascript-into-a-sharepoint-page/


    Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
    Website http://www.WhartonComputer.com
    Blog http://MyProjectExpert.com contains my field notes and SQL queries

    Thursday, March 22, 2018 3:56 AM
    Moderator
  • 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):

    https://epmxperts.wordpress.com/2014/01/20/secure-pdp-pages-as-per-project-server-security/

    You could also use target audience:

    http://psbehindthescene.blogspot.fr/2015/07/using-target-audience-to-prevent-team.html


    Hope this helps,


    Guillaume Rouyre, MBA, MVP, P-Seller

    Thursday, March 22, 2018 6:57 AM
    Moderator