New-GSStudentGuardianInvitation

SYNOPSIS

Creates a guardian invitation, and sends an email to the guardian asking them to confirm that they are the student's guardian.

SYNTAX

New-GSStudentGuardianInvitation [-StudentId] <String> [-GuardianEmail] <String> [[-User] <String>]
 [<CommonParameters>]

DESCRIPTION

Creates a guardian invitation, and sends an email to the guardian asking them to confirm that they are the student's guardian.

EXAMPLES

EXAMPLE 1

New-GSStudentGuardianInvitation -StudentId [email protected] -GuardianEmail [email protected]

EXAMPLE 2

Import-Csv .\Student_Guardian_List.csv | New-GSStudentGuardianInvitation

Process a CSV with two columns containing headers "Student" and "Guardian" and send the invites accordingly, i.e.

StudentId GuardianEmail
[email protected] [email protected]
[email protected] [email protected]

PARAMETERS

-GuardianEmail

The email address of the guardian to invite.

Type: String
Parameter Sets: (All)
Aliases: Guardian

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

-StudentId

Identifier of the user to invite. The identifier can be one of the following:

  • the numeric identifier for the user
  • the email address of the user
Type: String
Parameter Sets: (All)
Aliases: Student

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

-User

The user to authenticate the request as

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: $Script:PSGSuite.AdminEmail
Accept pipeline input: True (ByPropertyName)
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

OUTPUTS

Google.Apis.Classroom.v1.Data.GuardianInvitation

NOTES

Comments