CmdID

CmdID / PowerShell / Cmdlets / New

New-MgInvitation

Use this API to create a new invitation or reset the redemption status for a guest user who already redeemed their invitation. Microsoft Graph PowerShell reference

From the Microsoft Graph PowerShell reference 24 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

24 in the Microsoft Graph PowerShell reference
Show its 24 parameters
-AdditionalPropertiesAdditional Parameters
-BodyParameterinvitation To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
-BreakWait for .NET debugger to attach
-Confirm, -cfPrompts you for confirmation before running the cmdlet.
-HeadersOptional headers that will be added to the request.
-HttpPipelineAppendSendAsync Pipeline Steps to be appended to the front of the pipeline
-HttpPipelinePrependSendAsync Pipeline Steps to be prepended to the front of the pipeline
-IdThe unique identifier for an entity.
-InvitedUseruser To construct, see NOTES section for INVITEDUSER properties and create a hash table.
-InvitedUserDisplayNameThe display name of the user being invited.
-InvitedUserEmailAddressThe email address of the user being invited.
-InvitedUserMessageInfoinvitedUserMessageInfo To construct, see NOTES section for INVITEDUSERMESSAGEINFO properties and create a hash table.
-InvitedUserSponsorsThe users or groups who are sponsors of the invited user.
-InvitedUserTypeThe userType of the user being invited.
-InviteRedeemUrlThe URL the user can use to redeem their invitation.
-InviteRedirectUrlThe URL the user should be redirected to after the invitation is redeemed.
-ProxyThe URI for the proxy server to use
-ProxyCredentialCredentials for a proxy server to use for the remote call
-ProxyUseDefaultCredentialsUse the default credentials for the proxy
-ResetRedemptionReset the user's redemption status and reinvite a user while retaining their user identifier, group memberships, and app assignments.
-ResponseHeadersVariable, -RHVOptional Response Headers Variable.
-SendInvitationMessageIndicates whether an email should be sent to the user being invited.
-StatusThe status of the invitation.
-WhatIf, -wiRuns the command in a mode that only reports what would happen without performing the actions.