Project Server 2010 PSI - Add users to a project RRS feed

  • Question

  • Hi,

    I would like to add Project Permissions to user with the PSI . How Can I do this ? By the ResourcesRow or other ?

    Thank you.

    Monday, July 18, 2011 1:31 PM

All replies

  • Hello Mop55,

    I would say that its not very easy task to complete. It has to consider lot of thing in design of the code. first try to understand the way, It works:
    Project Permissions – How it Works

    At a high level, Project Permissions are like mini security categories with the differences being the following:
    1. These categories can be controlled by non-security administrators (at least those in the default Project Managers group).
    2. These categories cannot be controlled by server administrators nor seen by them on the Manage Categories administrative page.
    3. They apply only to the given project.
    4. There are only seven project level permissions you can grant access to.
    5. You cannot deny any of the given permissions. You only explicitly grant access on the given permission.

    Key Point: There are seven permissions you can set for a given project.
    Open the project within Project Professional or Project Web App
    Edit and Save the project within Project Professional or Project Web App
    Edit Project Summary Fields within Project Professional or Project Web App
    Publish the project within Project Professional or Project Web App
    View the Project Summary in the Project Center
    View the Project Schedule Details in Project Web App
    View the Project Site

    Now, It involves security, Resource & Project Web services.
    1. First you may need to find how it creates a mini category in project server ? Can you find mini category & associated group vis PSI If yes, It will be easy to add the resoures in mini category.YOu can manually try to create a Project permission on a test project & add few users & see if by calling the security web service, can you get data of this category or teh group association.
    2. Via Project Web services, You have the Project dataset which has information of Project Guid & corresponding to the guid, You can see the associated category
    2. With the Resource Web service, You get the Resource Guid & use the CheckUserObjectPermission of Security web service which actually checks if current user has the single specified security category permission for a project or resource object. Return the True or false.

    3. If Resource is not associated with the mini security category or ass, add user to it.

    P.S: This is just a starting point for you to think in this direction. I don't have a test PS 2010 env with me to test the block of code. You can write a small code blocks to check if you get all above data mentioned in Point 1, 2.

    Thanks, Amit Khare |EPM Consultant| Blog:
    Tuesday, July 19, 2011 6:44 AM