Please refer to the instructions below in order to unlock SharePoint and One Drive site access
Step-1: Connect to SharePoint Online
You can connect to SharePoint Online using the Connect-SPOService -Url <SharePoint admin center address> cmdlet,
Please refer to the article Connect-SPOService for more info.
Step-2: For One Drive Sites
You can unlock access to the One Drive site of a specific user with the help of the cmdlet below,
Set-SPOSite -Identity "<OneDriveSiteURL>" -LockState "<State>"
Example: Set-SpoSite -Identity https://abcxyz-my.sharepoint.com/personal/user1_abcxyz_com -LockState “Unlock”
Note: In the example above, we are unlocking the One Drive site access for the user1 in abcxyz.com domain.
Step-2: For SharePoint Sites:
You can unlock access to the SharePoint site with the help of the cmdlet below,
Set-SPOSite -Identity "<SharePointSiteURL>" -LockState "<State>"
Example: Set-SpoSite -Identity https:// abcxyz.sharepoint.com -LockState “Unlock”
Note: In the example above, we are unlocking the SharePoint site created under abcxyz.com domain.
Moreover, please refer to the article Lock and unlock sites for more info.
Comments
0 comments
Please sign in to leave a comment.