Skip to content

SPProjectServerPermissionMode

Yorick Kuijs edited this page Jul 10, 2020 · 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
InstallAccount Write PSCredential POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5

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