none
Adding project plans to a Project Server Security Category using Powershell RRS feed

  • Question

  • All,

    I am trying to add specific set of project plans to a project security category group; so that only selected individual who were provided access to this security category can access these. But as the number of project plans to be added is huge I want to do it in a single go using powershell script. 

    Using powershell I was able to read the security category members, but I dont see any way how I can add project plan to the security category. Can some one please suggest. Thanks for your response.

    PS C:\> $secCatUID = "29EE27D2-A929-46AD-8D26-4CE5D43B49B2"
    PS C:\> $secCat = $svchost.ReadCategory($secCatUID)

    PS C:\> $secCat

    SecurityCategories      : {Lock-Down-BRCC Projects to ReadOnly}
    UserRelations           : {}
    GroupRelations          : {29ee27d2-a929-46ad-8d26-4ce5d43b49b2, 29ee27d2-a929-46ad-8d26-4ce5d43b49b2, 29ee27d2-a929-46ad-8d26-4ce5d43b49b2, 29ee27d2-a929-46ad
                              -8d26-4ce5d43b49b2...}
    UserPermissions         : {}
    GroupPermissions        : {29ee27d2-a929-46ad-8d26-4ce5d43b49b2, 29ee27d2-a929-46ad-8d26-4ce5d43b49b2, 29ee27d2-a929-46ad-8d26-4ce5d43b49b2, 29ee27d2-a929-46ad
                              -8d26-4ce5d43b49b2...}
    SecurityCategoryObjects : {29ee27d2-a929-46ad-8d26-4ce5d43b49b2, 29ee27d2-a929-46ad-8d26-4ce5d43b49b2, 29ee27d2-a929-46ad-8d26-4ce5d43b49b2, 29ee27d2-a929-46ad
                              -8d26-4ce5d43b49b2...}
    SecurityCategoryRules   : {29ee27d2-a929-46ad-8d26-4ce5d43b49b2, 29ee27d2-a929-46ad-8d26-4ce5d43b49b2}
    SchemaSerializationMode : IncludeSchema
    Tables                  : {WSEC_CAT_UID, WSEC_CAT_UID RES_UID, WSEC_CAT_UID WSEC_GRP_UID, WSEC_CAT_UID RES_UID WSEC_FEA_ACT_UID...}
    Relations               : {}
    RemotingFormat          : Xml
    CaseSensitive           : False
    DefaultViewManager      : {System.Data.DataViewManagerListItemTypeDescriptor}
    EnforceConstraints      : True
    DataSetName             : SecurityCategoriesDataSet
    Namespace               : http://schemas.microsoft.com/office/project/server/webservices/SecurityCategoriesDataSet/
    Prefix                  :
    ExtendedProperties      : {}
    HasErrors               : False
    IsInitialized           : True
    Locale                  : en-US
    Site                    :
    Container               :
    DesignMode              : False


    • Edited by Srivatsava Wednesday, June 19, 2019 12:44 PM
    Wednesday, June 19, 2019 12:43 PM