Remove shared calendar permissions


i have followed post added permissions view calendars of other users in office 365 environment.  need clear out these permissions 60-70 email addresses.  how start this?

hi fedres,

thanks for your posting.

to remove permissions to view calendars, please use cmdlet remove-mailboxfolderpermission.

and script below may helpful remove permissions:

$allusers = get-mailbox | select identity foreach ( $user in $allusers ) { get-mailbox | foreach {  if ( $_.identity -ne $user.identity ) { remove-mailboxfolderpermission $($_.samaccountname)+":\calendar" -user $user.identity        }    } }

hope helps.


we trying better understand customer views on social support experience, participation in interview project appreciated if have time.
helping make community forums great place.



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...