Skip to content

SPProjectServerGroup

dscbot edited this page Mar 17, 2023 · 11 revisions

SPProjectServerGroup

Parameters

Parameter Attribute DataType Description Allowed Values
Url Key String The default zone URL of the Project site to manage the group at
Name Key String The name of the group
Description Write String The description of the group
ADGroup Write String What AD group should be used to synchronise membership to this Project Server group, cannot be used with Members, MembersToInclude or MembersToExclude
Members Write StringArray[] A fixed list of members to be in this group, cannot be used with ADGroup, MembersToInclude or MembersToExclude
MembersToInclude Write StringArray[] A list of members to ensure are in this group, cannot be used with ADGroup or Members
MembersToExclude Write StringArray[] A list of members to ensure are not in this group, cannot be used with ADGroup or Members
Ensure Write String Present if the service app should exist, absent if it should not Present, Absent

Description

Type: Distributed Requires CredSSP: No

This resource is used to configure a group within Project Server. This is only available for use when the site is configured to use Project Server permissions mode and for Project Server 2016 only.

Examples

Example 1

This example shows how to create a group with a specific list of members in a PWA site

Configuration Example
{
    param
    (
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $SetupAccount
    )

    Import-DscResource -ModuleName SharePointDsc

    node localhost
    {
        SPProjectServerGroup Group
        {
            Url                  = "http://projects.contoso.com"
            Name                 = "My group"
            Members              = @(
                "Domain\User1"
                "Domain\User2"
            )
            PSDscRunAsCredential = $SetupAccount
        }
    }
}

Example 2

This example shows how to create a PWA group mapped to a group in AD

Configuration Example
{
    param
    (
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $SetupAccount
    )

    Import-DscResource -ModuleName SharePointDsc

    node localhost
    {
        SPProjectServerGroup Group
        {
            Url                  = "http://projects.contoso.com"
            Name                 = "My group"
            ADGroup              = "Domain\Group"
            PSDscRunAsCredential = $SetupAccount
        }
    }
}
Clone this wiki locally