Skip to content

New GARoleAssignmentObj

Spencer Varney edited this page Dec 9, 2016 · 2 revisions

New-GARoleAssignmentObj

SYNOPSIS

Creates a new Directory API RoleAssignment object.

SYNTAX

New-GARoleAssignmentObj [[-AssignedTo] <String>] [[-OrgUnitId] <String>] [[-RoleAssignmentId] <Int64>]
 [[-RoleId] <Int64>] [[-ScopeType] <String>] [-WhatIf] [-Confirm]

DESCRIPTION

This provides a Cmdlet-Based approach to creating a RoleAssignment object which may be required as a parameter for some other Cmdlets in the Directory API category.

You could alternately create this object by calling New-Object -TypeName Google.Apis.admin.Directory.directory_v1.Data.RoleAssignment

EXAMPLES

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

PS C:\> New-GARoleAssignmentObj

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

PARAMETERS

-AssignedTo

The unique ID of the user this role is assigned to.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 0
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-OrgUnitId

If the role is restricted to an organization unit, this contains the ID for the organization unit the exercise of this role is restricted to.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-RoleAssignmentId

ID of this roleAssignment.

Type: Int64
Parameter Sets: (All)
Aliases: 

Required: False
Position: 2
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-RoleId

The ID of the role that is assigned.

Type: Int64
Parameter Sets: (All)
Aliases: 

Required: False
Position: 3
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ScopeType

The scope in which this role is assigned. Possible values are:- CUSTOMER- ORG_UNIT

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 4
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

INPUTS

System.String

The unique ID of the user this role is assigned to.

System.String

If the role is restricted to an organization unit, this contains the ID for the organization unit the exercise of this role is restricted to.

System.Int64

ID of this roleAssignment.

System.Int64

The ID of the role that is assigned.

System.String

The scope in which this role is assigned. Possible values are:- CUSTOMER- ORG_UNIT

OUTPUTS

Google.Apis.admin.Directory.directory_v1.Data.RoleAssignment

NOTES

Part of the gShell Project, relating to the Google Directory API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally