Get-NAVServerPermission

Returns information about the permissions that are applied to Business Central objects for the specified Business Central 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 Business Central permissions that are applied to Business Central objects for the specified Business Central 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
Accept pipeline input:False
Accept wildcard characters:False
-ObjectId

Specifies an Object ID, such as 7702.

Type:Int32
Position:Named
Default value:None
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, Enum, EnumExtension, Profile, ProfileExtension
Position:Named
Default value:None
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
Accept pipeline input:False
Accept wildcard characters:False
-ServerInstance

Specifies the name of a Business Central Server instance, for example, BC 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
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Inputs

System.String

You can pipe a string that contains a Business Central Server instance name to the cmdlet.

Outputs

System.Data.DataTable

Returns the Business Central Server permissions information as a table.