Export-NAVAppPermissionSet

Export-NAVAppPermissionSet

Exports the specified permission set from a Microsoft Dynamics NAV database to a file.

Syntax

Parameter Set: Default
Export-NAVAppPermissionSet [-ServerInstance] <String> -Path <String> -PermissionSetId <String[]> [-Force] [-PassThru] [ <CommonParameters>]

Detailed Description

Use the Export-NAVAppPermissionSet cmdlet to export one or more permission sets from a Microsoft Dynamics NAV database to a file.

Parameters

-Force

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. Returns the path to the permission set file.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Path<String>

Specifies the name and location of the file that the permissions set is exported to.

Aliases

PackagePath

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-PermissionSetId<String[]>

Specifies the ID of the permission set that will be exported.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-ServerInstance<String>

Specifies the Microsoft Dynamics NAV Server instance that the permission set will be exported from, such as DynamicsNAV90.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Examples

-------------------------- EXAMPLE 1 --------------------------

Description

-----------

This example exports the permission set with the ID "PSA-VIEW" in the database that is used by the DynamicsNAV90 server instance to the PermissionSet.xml file.

PS C:\> Export-NAVAppPermissionSet -ServerInstance DynamicsNAV90 -Path '.\PermissionSet.xml' -PermissionSetId PSA-VIEW

-------------------------- EXAMPLE 2 --------------------------

Description

-----------

This example exports the permission set with the ID "PSA-VIEW" in the database that is used by the DynamicsNAV90 server instance to the PermissionSet.xml file, and then returns the location of the file.

PS C:\> 
          Export-NAVAppPermissionSet -ServerInstance DynamicsNAV90 -Path '.\PermissionSet.xml' -PermissionSetId PSA-VIEW -PassThru

          Mode             LastWriteTime            Length Name
          ----             -------------            ------ ----
          -a---            8/5/2015   11:47 AM         450 PermissionSet.xml
        

Extending Microsoft Dynamics NAV Using Extension Packages