This blog will help you to create the new Document Library under your OneDrive for Business account. You can get some basic information about OneDrive for Business at the following URL: Click Here
Yes, OneDrive for Business is used to store your personal documents using your organization ID. Do you think no one can see your personal data from your OneDrive for Business account? Obviously, NO! Every SharePoint administrator can have access to your OneDrive account for troubleshooting and content recovery.
Yes, OneDrive for Business is used to store your personal documents using your organization ID. Do you think no one can see your personal data from your OneDrive for Business account? Obviously, NO! Every SharePoint administrator can have access to your OneDrive account for troubleshooting and content recovery.
OK, so where I can store my confidential data in OneDrive? Is there any way to do that?
Yes, OneDrive has been developed using the SharePoint Schema, so obviously we can create another document library, list, and subsites.
But when you click the Gear button on the right top of the screen, you can’t see the site content option to create another document library or List.

Basically, you can access the site content using the below URL. From there, you can create the Document Library, List, or Subsite.
https://tenant-my.sharepoint.com/personal/thivagar_segar_Domain_com/_layouts/15/viewlsts.aspx?view=14
If you cannot access the Site Content using the above URL, we can create using the PowerShell. Before we begin with PowerShell, we require some prerequisite files that need to be downloaded on your system
- SharePoint Online Management Shell - https://www.microsoft.com/en-in/download/details.aspx?id=35588
- SharePoint Online Client Components SDK - https://www.microsoft.com/en-in/download/details.aspx?id=42038
- #Collect the Tenant URL
- $TenantURL = "https://osspdy-admin.sharepoint.com"
- #Get the User ID
- $LoginName = "[email protected]"
- #Get the Password
- $LoginPassword = Read - Host - AsSecureString "password"
- #Mention the Library Name
- $Libraryname = "Hidden1"
- #Login the Admin Center
- $cred = New - Object System.Management.Automation.PSCredential($LoginName, $LoginPassword)
- Connect - SPOService - Url $TenantURL - Credential $cred
- # Connect the OneDrive Account using Client Context
- $Context = New - Object Microsoft.SharePoint.Client.ClientContext("https://osspdy-my.sharepoint.com/personal/thivagar_segar_oss-pdy_com")
- # Copy the credential
- $Credential = New - Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($LoginName, $LoginPassword)
- $Context.Credentials = $Credential
- # Create Library using new - object
- $ListInfo = New - Object Microsoft.SharePoint.Client.ListCreationInformation
- # Apply the library nae
- $ListInfo.Title = $Libraryname
- # mentione the Library Template numner
- $ListInfo.TemplateType = 101
- $List = $Context.Web.Lists.Add($ListInfo)
- # add the Description
- $List.Description = "Hidden Library"
- #Update the list info
- $List.Update()
- "
- $list = $Context.Web.Lists.GetByTitle($Libraryname)
- $Context.Load($list)
- # Execute the query to finalize the creation
- $context.executeQuery()
Once it is created, you can see it in your site content

So, when you are trying to access the hidden library, you can use the below URL structure like -
https://osspdy-my.sharepoint.com/personal/thivagar_segar_oss-pdy_com/Hidden .

Join the conversation! Your thoughts help the community grow.