-
Notifications
You must be signed in to change notification settings - Fork 107
SPProjectServerGroup
dscbot edited this page Mar 17, 2023
·
11 revisions
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
|
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.
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
}
}
}
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
}
}
}
- Home
- Getting Started
- Pre-requisites
- Installing the module
- Exporting SharePoint Configuration
- Creating Configuration Files
- Pre-created Examples
- Creating an Azure development environment
- Understanding Resources & Syntax
- Remote PowerShell Authentication
- Contributing to SharePointDsc
- Other useful modules for SharePoint DSC configurations