Skip to content
This repository was archived by the owner on Jan 29, 2022. It is now read-only.

Latest commit

 

History

History
105 lines (77 loc) · 2.11 KB

New-CrmRole.md

File metadata and controls

105 lines (77 loc) · 2.11 KB
external help file Module Name online version schema
AMSoftware.Crm.PowerShell.Commands.dll-Help.xml
AMSoftware.Crm
2.0.0

New-CrmRole

SYNOPSIS

Add a new role.

SYNTAX

New-CrmRole [-Name] <String> [-BusinessUnit <Guid>] [-Inheritance <CrmRoleInheritance>] [-PassThru]
 [<CommonParameters>]

DESCRIPTION

Add a new role.

EXAMPLES

PARAMETERS

-BusinessUnit

The id of the business unit the new role is associated with.

Type: System.Guid
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Inheritance

Is Role inherited by users from team membership, if role associated with team.

Type: AMSoftware.Crm.PowerShell.Common.CrmRoleInheritance
Parameter Sets: (All)
Aliases:
Accepted values: TeamOnly, DirectUser

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

-Name

The name for the role.

Type: System.String
Parameter Sets: (All)
Aliases:

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

-PassThru

Returns an object that represents the Role. By default, this cmdlet does not generate any output.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
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.

INPUTS

System.Guid

OUTPUTS

Microsoft.Xrm.Sdk.Entity

NOTES

RELATED LINKS

Get-CrmRole

Entity Class