Applies to: Project Server 2013
Topic Last Modified: 2013-12-18
Grants administrator permissions for the specified instance of Project Web App to the specified user or group.
The Grant-SPProjectAdministratorAccess cmdlet grants administrator permissions to a user or group for an instance of Project Web App. In SharePoint Permission mode, either a user, group, or claim may be specified for the UserAccount parameter. That user or group is placed in the Administrators for Project Web App group. In Project Server Permission mode only a user account may be specified and that user is placed in the default Administrators group within the Project Web App security model.
In Project Server Permission mode, if the default Administrators group in Project Web App has been modified, those modified permissions apply to the user account specified for the UserAccount parameter. For example, if all administrative permissions have been removed from the default Administrators group in Project Server Permission mode, then using this cmdlet results in effectively no administrative permissions being assigned to the specified user account.
For more information on Permission modes, see Plan user access in Project Server 2013.
Specifies the site collection that contains the Project Web App instance to which administrator access will be granted.
Specifies the user account to which administrator access will be granted. This account must be a specific user when in Project Server Permission mode or may be either a user or group when in SharePoint Permission mode.
Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.
Grant-SPProjectAdministratorAccess -Url http://contoso-AppSrv/pwa -UserAccount contoso\john.woods
This example grants administrator permissions to the specified user to the Project Web App instance at http://contoso-AppSrv/pwa.
Grant-SPProjectAdministratorAccess -Url http://contoso-AppSrv/pwa -UserAccount contoso\PWAUsers
This example grants administrator permissions to the PWAUsers group for the Project Web App instance at http://contoso-AppSrv/pwa.
|Because this example grants permission to a group, it only works in SharePoint Permission mode.|