Get-NAVServerPermissionSet

Get-NAVServerPermissionSet

Returns a list of permission sets for the specified Microsoft Dynamics NAV Server instance.

Syntax

Parameter Set: __AllParameterSets
Get-NAVServerPermissionSet [-ServerInstance] <String> [-AsXml] [ <CommonParameters>]

Detailed Description

Use the Get-NAVServerPermissionSet cmdlet to return a list of permission sets for the specified Microsoft Dynamics NAV Server instance.

Parameters

-AsXml

Formats cmdlet output as an XML node.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ServerInstance<String>

Specifies the name of a Microsoft Dynamics NAV Server instance. The default instance name is DynamicsNAV70. You can specify either the full name of an instance (such as MicrosoftDynamicsNavServer$myinstance) or the short name (such as myinstance).

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: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.String

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

Outputs

The output type is the type of the objects that the cmdlet emits.

  • System.Data.DataTable

    Returns the permission sets as a table.

  • System.Xml.XmlElement

    If you use the parameter, then the cmdlet returns the permission sets as an XML element.

Examples

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

Description

-----------

This example returns all permission sets in the current Microsoft Dynamics NAV database. Only the first page of the return is shown.

C:\PS>Get-NAVServerPermissionSet DynamicsNav70

PermissionSet ID                        Name
----------------                        ----
ADCS ALL                                ADCS User
ADCS SETUP                              ADCS Set-up
BASIC                                   Basic User (All Inclusive)
CASHFLOW                                Cash Flow Total
CHANGELOG-DELETE                        Delete Change Log Entries
CHANGELOG-SETUP                         Setup Change Log
CHANGELOG-VIEW                          View Change Log Entries
COST                                    Cost Accounting
DOC-APP-SETUP                           Document Approval Setup
DOC-APP-USER                            Document Approval
FA-FIXED ASSET                          Read fixed assets and entries
FA-FIXED ASSET, EDIT                    Edit fixed assets
FA-INS JOURNAL                          Create entries in ins. jnls.
FA-INS JOURNAL, POST                    Post insurance journals
FA-INS REGISTER                         Read insurance registers
...

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

Description

-----------

Returns all permission sets for the default Microsoft Dynamics NAV Server instance in XML format. Only some of the return is shown.

C:\PS>Get-NAVServerPermissionSet MicrosoftDynamicsNavServer -AsXml | fc

class XmlElement
{
Permission_x0020_Set =
[
class XmlElement
{
PermissionSet_x0020_ID = ADCS ALL
Name = ADCS User
}
class XmlElement
{
PermissionSet_x0020_ID = ADCS SETUP
Name = ADCS Set-up
}
class XmlElement
{
PermissionSet_x0020_ID = BASIC
Name = Basic User (All Inclusive)
}
class XmlElement
{
PermissionSet_x0020_ID = CASHFLOW
Name = Cash Flow Total
}
...
]

}