Get-O365User
Gets an office_365_2 account.
Syntax
Get-O365User
[-O365AccountUPN] <String>
[<CommonParameters>]
Description
The Get-O365User cmdlet gets an office_365_1 account.
Examples
Example 1: Get an office_365_2 accountoffice_365_2
PS C:\> Get-O365User -O365AccountUPN "PattiFuller@contoso.onmicrosoft.com"
This command gets the office_365_2 account that has the UPN PattiFuller@contoso.onmicrosoft.com.
1:
PS C:\>
Parameters
-O365AccountUPN
Specifies a user principal name (UPN). The cmdlet gets the office_365_2 user account that has the UPN that you specify.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
LocalAccountName Type: System.String Description: local user name
Outputs
Microsoft.WindowsServerSolutions.O365Integration.O365User
This cmdlet returns a class that represents an office_365_2 online account. When output: office_365_2 online account exists ObjectId Property System.Guid UserPrincipalName Property System.String Activated Property System.Boolean LocalUserName Property System.String Licenses Property System.Collections.ObjectModel.ReadOnlyCollection<O365UserLicense>
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for