Remove-MailboxAccessOnderwijs
SYNOPSIS
Remove user rights to an Exchange Online mailbox in the Office 365 environment of Onderwijs Gent.
SYNTAX
Remove-MailboxAccessOnderwijs [[-Mailboxnaam] <String>] [[-Gebruikers] <Array>] [<CommonParameters>]
DESCRIPTION
The `Remove-MailboxAccessOnderwijs` function removes user permissions (Full Access, Send As, and calendar editor rights) from a specified mailbox in the Onderwijs Gent Office 365 environment. It ensures the mailbox and users are validated before removing permissions and supports interactive input for mailbox and user details.
EXAMPLES
EXAMPLE 1
Remove-MailboxAccessOnderwijs -Mailboxnaam "[email protected]" -Gebruikers @("[email protected]", "[email protected]")
Removes permissions for the specified users from the mailbox `mailbox@onderwijs.gent.be`.
EXAMPLE 2
Remove-MailboxAccessOnderwijs -Mailboxnaam "[email protected]"
Prompts for user input to specify which users' permissions should be removed from the mailbox `mailbox@onderwijs.gent.be`.
PARAMETERS
-Mailboxnaam
The UserPrincipalName or primary SMTP address of the mailbox. The suffix should be `@onderwijs.gent.be`.
Type: String
Parameter Sets: (All)
Aliases: Userprincipalname, UPN, MailboxName
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Gebruikers
An array of UserPrincipalNames or primary SMTP addresses of the users to retract mailbox permissions from. The suffix should be `@onderwijs.gent.be`.
Type: Array
Parameter Sets: (All)
Aliases: Users
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
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.