Get-VBOOrganizationUser
Short Description
Returns organization users.
Syntax
This cmdlet provides the following parameter sets:
-
All (Default)Get-VBOOrganizationUser -Organization <VBOOrganization> [-Limit <UInt64>] [-Type <VBOOrganizationUserType>]
[-NotInJob] [-LocationFilter <VBOLocationFilters>] [-DataSource <VBOOrganizationDataSource>] [<CommonParameters>]
-
ByNameGet-VBOOrganizationUser -Organization <VBOOrganization> [-Name <String>] [-UserName <String>]
[-DisplayName <String>] [-Limit <UInt64>] [-Type <VBOOrganizationUserType>] [-NotInJob]
[-LocationFilter <VBOLocationFilters>] [-DataSource <VBOOrganizationDataSource>] [<CommonParameters>]
-
ByIdGet-VBOOrganizationUser -Organization <VBOOrganization> [-OfficeId <Guid>] [-OnPremisesId <Guid>]
[-Type <VBOOrganizationUserType>] [-NotInJob] [-DataSource <VBOOrganizationDataSource>] [<CommonParameters>]
Detailed Description
This cmdlet returns Microsoft organization users.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
DataSource |
Specifies how the cmdlet will return organization users:
Default: PreferLocal |
|
False |
Named |
False |
|
DisplayName |
Specifies a display name of an organization user. The cmdlet will return the organization user with this display name. |
|
False |
Named |
False |
|
Limit |
Specifies the maximum number of users that the cmdlet will return. |
|
False |
Named |
False |
|
LocationFilter |
Note: Use this parameter for organizations of the Specifies an organization user location type:
The cmdlet will return organization users of this location type. |
|
False |
Named |
False |
|
Name |
Note: This parameter is deprecated. Use the Specifies a name of an organization user. The cmdlet will return the organization user with this name. |
|
False |
Named |
False |
|
NotInJob |
Defines that the cmdlet will return users that are not manually included in any of the backup jobs. Default: False
Note: If a user is backed up by the |
|
False |
Named |
False |
|
OfficeId |
Specifies an ID of a Microsoft 365 organization user. The cmdlet will return the organization user with this ID. |
|
False |
Named |
False |
|
OnPremisesId |
Specifies an ID of an on-premises organization user. The cmdlet will return the organization user with this ID. |
|
False |
Named |
False |
|
Organization |
Specifies a Microsoft organization. The cmdlet will return organization users of the specified organization.
Accepts the
To get this object, run the |
True |
Named |
True (ByValue) |
|
|
Type |
Specifies the organization user type:
The cmdlet will return organization users of this type.
Note: To get shared or public mailboxes in Microsoft organizations with modern app-only authentication, you must specify the |
|
False |
Named |
False |
|
UserName |
Specifies a user name of an organization user. The cmdlet will return the organization user with this user name. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns an array of the VBOOrganizationUser objects that contain details about Microsoft organization users.
Examples
Example 1: Getting All Users in Microsoft Organization
|
This example shows how to get all organization users in the ABC organization.
Perform the following steps:
|
Example 2: Getting Users of Specific Type
|
This example shows how to get all organization users of the User type in the ABC organization.
Perform the following steps:
|
Example 3: Getting Specific User
|
This example shows how to get the userAlpha organization user by the user display name.
Perform the following steps:
|
Example 4: Getting Unprocessed Users Using Wildcards
|
This example shows how to get all users of the User type with a display name starting with A that are not manually included in any of backup jobs.
Perform the following steps:
|
Example 5: Getting User by User Name
|
This example shows how to get the userAlpha@tech.onmicrosoft.com organization user by the user name.
Perform the following steps:
|
Related Commands
Get-VBOOrganizationReturns Microsoft organizations added to the Veeam Backup for Microsoft 365 infrastructure.