Get-VEODUser
Short Description
Returns OneDrive users.
Product: Veeam Backup for Microsoft 365
Product Edition: Community, Rental License, Subscription License
Syntax
|
Get-VEODUser [-Session] <VBOOneDriveItemRestoreSession> [[-Name] <String[]>] [[-Organization] <VBOOneDriveOrganization[]>] [<CommonParameters>] |
Detailed Description
This cmdlet returns OneDrive organization users.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Name |
Specifies an array of user names. The cmdlet will return users with these names. This parameter accepts wildcard characters. |
|
False |
1 |
False |
|
Organization |
Specifies an array of Microsoft OneDrive organizations. The cmdlet will return OneDrive users from these organizations.
Accepts the |
False |
2 |
True (ByValue) |
|
|
Session |
Specifies an active Microsoft OneDrive restore session. This cmdlet will return organizations from the specified restore session.
Accepts the |
True |
0 |
True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Docs.
Output Object
The cmdlet returns the VBOOneDriveUser[] array that contains OneDrive users.
Examples
Getting OneDrive Organization User
This example shows how to get the userAlpha OneDrive user from the ABC OneDrive organization added to Veeam Backup for Microsoft 365.
|
$session = Get-VEODRestoreSession $org = Get-VEODOrganization -Session $session -Name "ABC*" Get-VEODUser -Organization $org -Name "userAlpha" |
Perform the following steps:
- Run the
Get-VEODRestoreSessionReturns active restore sessions started to perform operations with backed-up OneDrive items. cmdlet. Save the result to the$sessionvariable. - Run the
Get-VEODOrganizationReturns Microsoft OneDrive organizations added to Veeam Backup for Microsoft 365. cmdlet. Set the$sessionvariable as theSessionparameter value. Specify theNameparameter value. Use the * wildcard character to substitute the timestamp. Save the result to the$orgvariable. - Run the
Get-VEODUsercmdlet. Set the$orgvariable as theOrganizationparameter value. Specify theNameparameter value.
Related Commands
Get-VEODRestoreSessionReturns active restore sessions started to perform operations with backed-up OneDrive items.Get-VEODOrganizationReturns Microsoft OneDrive organizations added to Veeam Backup for Microsoft 365.