Get-NAVServerPermission

Returns information about the permissions that are applied to Dynamics NAV objects for the specified Dynamics NAV Server instance.

Syntax

Get-NAVServerPermission
   [-PermissionSetId <String>]
   [-ObjectType <ObjectType>]
   [-ObjectId <Int32>]
   [-ServerInstance] <String>
   [-Force]
   [<CommonParameters>]

Description

Use the Get-NAVServerPermission cmdlet to return a list of Microsoft Dynamics NAV permissions that are applied to Microsoft Dynamics NAV objects for the specified Microsoft Dynamics NAV Server instance.

You can filter the information permission set ID, object type, and/or object ID.

Examples

EXAMPLE 1

Get-NavServerPermission nav_server_instance -ObjectId 7700

PermissionSet ID   : ADCS ALL
Object Type        : Table Data
Object ID          : 7700
Read Permission    : Yes
Insert Permission  :
Modify Permission  :
Delete Permission  :
Execute Permission :
Security Filter    :
PermissionSet Name : ADCS User
Object Name        : Miniform Header

PermissionSet ID   : ADCS SETUP
Object Type        : Table Data
Object ID          : 7700
Read Permission    : Yes
Insert Permission  : Yes
Modify Permission  : Yes
Delete Permission  : Yes
Execute Permission :
Security Filter    :
PermissionSet Name : ADCS Set-up
Object Name        : Miniform Header

This example returns information about all permission sets that include permissions for object 7700.

Parameters

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ObjectId

Specifies an Object ID, such as 7702.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ObjectType

Specifies an Object Type, such as TableData or Page. Always remove spaces when specifying an Object Type. You can also use integers to specify the Object Type:

TableData = 0

Table = 1

Form = 2

Report = 3

Dataport = 4

CodeUnit = 5

XmlPort = 6

MenuSuite = 7

Page = 8

Query = 9

System = 10

FieldNumber = 11

Type:ObjectType
Accepted values:TableData, Table, Form, Report, Dataport, CodeUnit, XmlPort, MenuSuite, Page, Query, System, FieldNumber, LimitedUsageTableData, TablePage, PageExtension, TableExtension
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PermissionSetId

Specifies the ID for a permission set, such as SUPER or BASIC.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ServerInstance

Specifies the name of a Dynamics NAV Server instance, for example, DynamicsNAV or myinstance. You can specify either the full name of an instance, such as MicrosoftDynamicsNavServer$myinstance or the short name such as myinstance.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

System.String

You can pipe a string that contains a Microsoft Dynamics NAV Server instance name to the cmdlet.

Outputs

System.Data.DataTable

Returns the Microsoft Dynamics NAV Server permissions information as a table.