LOGIN: $LiveCred = Get-Credential
# Now use the credentials admin account O365
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session Login: MFA: Connect-ExchangeOnline -UserPrincipalName <e-mail> Agenda rechten opvragen voor gebruiker:
$name = Read-Host 'Voor welke gebruiker vraag je agenda gegevens op?' Get-MailboxFolderPermission -Identity ${name}:\agenda Get-MailboxFolderPermission -Identity ${name}:\calendar Geef je mailbox op waar andere gebruikers rechten op gaan krijgen.
Wijzigen van Agenda/Calendar rechten Office365 Verander mail@mail.nl naar het mailadres waarvan de rechten moeten worden aangepast.
Kijk welke er in het rood terugkomt? Die niet gebruiken met het volgende commando: Het is calendar of agenda.
Add-MailboxFolderPermission -Identity mail@mail.nl:\calendar -user Username-invullen -AccessRights Reviewer
OF
Add-MailboxFolderPermission -Identity mail@mail.nl:\agenda -user Username-invullen -AccessRights Reviewer Verander rechten voor een gebruiker die al rechten had op de mailbox die we hebben opgevraagd?
Set-MailboxFolderPermission -Identity mail@mail.nl:\calendar -user Username-invullen -AccessRights Reviewer OF Set-MailboxFolderPermission -Identity mail@mail.nl:\agenda -user Username-invullen -AccessRights Reviewer
To add or change the settings use the following :
You can use these available access roles:
- Owner — read, create, modify and delete all items and folders. Also this role allows manage items permissions;
- PublishingEditor — read, create, modify and delete items/subfolders;
- Editor — read, create, modify and delete items;
- PublishingAuthor — read, create all items/subfolders. You can modify and delete only items you create;
- Author — create and read items; edit and delete own items NonEditingAuthor – full read access and create items. You can delete only your own items;
- Reviewer — read only;
- Contributor — create items and folders;
- AvailabilityOnly — read free/busy information from calendar;
- LimitedDetails;
- None — no permissions to access folder and files.