< Back
Get-ODDrives
Post
NAME Get-ODDrives
SYNOPSIS
SYNTAX
Get-ODDrives [-AccessToken] <String> [[-ResourceId] <String>] [<CommonParameters>]
DESCRIPTION
Get user's drives.
PARAMETERS
-AccessToken <String>
A valid access token for bearer authorization.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ResourceId <String>
Mandatory for OneDrive 4 Business access. Is the ressource URI: "https://<tenant>-my.sharepoint.com/".
Example: "https://sepagogmbh-my.sharepoint.com/"
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
The application for OneDrive 4 Business needs "Read items in all site collections" on application level (API:
Office 365 SharePoint Online)
Author: Marcel Meurer, marcel.meurer@sepago.de, Twitter: MarcelMeurer
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-ODDrives -AccessToken $AuthToken
List all OneDrives available for your account (there is normally only one).
RELATED LINKS
SYNOPSIS
SYNTAX
Get-ODDrives [-AccessToken] <String> [[-ResourceId] <String>] [<CommonParameters>]
DESCRIPTION
Get user's drives.
PARAMETERS
-AccessToken <String>
A valid access token for bearer authorization.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ResourceId <String>
Mandatory for OneDrive 4 Business access. Is the ressource URI: "https://<tenant>-my.sharepoint.com/".
Example: "https://sepagogmbh-my.sharepoint.com/"
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
The application for OneDrive 4 Business needs "Read items in all site collections" on application level (API:
Office 365 SharePoint Online)
Author: Marcel Meurer, marcel.meurer@sepago.de, Twitter: MarcelMeurer
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-ODDrives -AccessToken $AuthToken
List all OneDrives available for your account (there is normally only one).
RELATED LINKS