다음을 통해 공유


Add-AXSecurityRoleMember

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Add-AXSecurityRoleMember

Adds a Microsoft Dynamics AX user to a Microsoft Dynamics AX security role.

Syntax

Parameter Set: Default
Add-AXSecurityRoleMember -AOTName <String> -AxUserID <String> [-PartitionKey <String> ] [ <CommonParameters>]

Detailed description

The Add-AXSecurityRoleMember cmdlet adds a Microsoft Dynamics AX user to a Microsoft Dynamics AX security role.

Parameters

-AOTName<String>

Specifies the name that is used in the AOT for the Microsoft Dynamics AX security role to add the user to.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-AxUserID<String>

Specifies the Microsoft Dynamics AX User ID to add to the Microsoft Dynamics AX security role.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PartitionKey<String>

Specifies the partition to add the security role to. By default, the security role is added to the initial partition.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, OutBuffer, OutVariable, WarningAction, and WarningVariable. For more information, see about_CommonParameters https://go.microsoft.com/fwlink/?LinkID=113216

Inputs

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

  • None

    You cannot pipe input to this cmdlet.

Outputs

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

  • None

    The cmdlet does not generate any output.

Examples

This example adds the user Vamsi Kuppa (vamsik) to the Microsoft Dynamics AX LedgerAccountant security role.

C:\PS>Add-AXSecurityRoleMember -AxUserID vamsik -AOTName LedgerAccountant

Remove-AXSecurityRoleMember

Get-AXPartitionInfo

Copyright Microsoft Corporation. All rights reserved.