Set-PnPRequestAccessEmails
SYNOPSIS
Sets Request Access Email on a web
SYNTAX
Set-PnPRequestAccessEmails [-Emails <String[]>] [-Disabled] [-Connection <PnPConnection>]
DESCRIPTION
Enables or disables access requests to be sent and configures which e-mail address should receive these requests. The web you apply this on must have unique rights.
EXAMPLES
EXAMPLE 1
Set-PnPRequestAccessEmails -Emails someone@example.com
This will enable requesting access and send the requests to the provided e-mail address
EXAMPLE 2
Set-PnPRequestAccessEmails -Disabled
This will disable the ability to request access to the site
EXAMPLE 3
Set-PnPRequestAccessEmails -Disabled:$false
This will enable the ability to request access to the site and send the requests to the default owners of the site
PARAMETERS
-Connection
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: PnPConnection
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Disabled
Enables or disables access to be requested
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Emails
Email address to send the access requests to
Type: String[]
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False