Skip to content

SPProjectServerPermissionMode

dscbot edited this page Mar 17, 2023 · 11 revisions

SPProjectServerPermissionMode

Parameters

Parameter Attribute DataType Description Allowed Values
Url Key String The default zone URL of the Project site to set permissions for
PermissionMode Required String What permission mode should PWA use SharePoint, ProjectServer

Description

Type: Distributed Requires CredSSP: No

This resource allows you to set the permissions mode (either SharePoint or ProjectServer) for a specific project server site.

Examples

Example 1

This example shows how to a specific PWA site to use SharePoint permission mode.

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

    Import-DscResource -ModuleName SharePointDsc

    node localhost
    {
        SPProjectServerPermissionMode PermissionMode
        {
            Url                  = "http://projects.contoso.com"
            PermissionMode       = "SharePoint"
            PsDscRunAsCredential = $SetupAccount
        }
    }
}

Example 2

This example shows how to a specific PWA site to use Project server permission mode.

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

    Import-DscResource -ModuleName SharePointDsc

    node localhost
    {
        SPProjectServerPermissionMode PermissionMode
        {
            Url                  = "http://projects.contoso.com"
            PermissionMode       = "ProjectServer"
            PsDscRunAsCredential = $SetupAccount
        }
    }
}
Clone this wiki locally