SPProjectServerGroup - dsccommunity/SharePointDsc GitHub Wiki
Parameters
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name | Key | String | The name of the group | |
Url | Key | String | The default zone URL of the Project site to manage the group at | |
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 | |
Description | Write | String | The description of the group | |
Ensure | Write | String | Present if the service app should exist, absent if it should not | Present , Absent |
Members | Write | StringArray[] | A fixed list of members to be in this group, cannot be used with ADGroup, MembersToInclude or MembersToExclude | |
MembersToExclude | Write | StringArray[] | A list of members to ensure are not in this group, cannot be used with ADGroup or Members | |
MembersToInclude | Write | StringArray[] | A list of members to ensure are in this group, cannot be used with ADGroup or Members |
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
}
}
}