Get-UsersOrGroupsFromGraph
Returns users or groups from Graph.
Syntax
Id (Default)
Get-UsersOrGroupsFromGraph
-ObjectId <String>
[-GraphApiVersion <String>]
[<CommonParameters>]
Search
Get-UsersOrGroupsFromGraph
-SearchString <String>
[-GraphApiVersion <String>]
[<CommonParameters>]
Description
The Get-UsersOrGroupsFromGraph cmdlet calls graph and returns users or groups from Graph. Use Get-Help Get-UsersOrGroupsFromGraph -Examples for more detail.
Examples
EXAMPLE 1
Get-UsersOrGroupsFromGraph -ObjectId "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb"
Get user with user object ID "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb" from graph by calling the graph service using version 1.6.
EXAMPLE 2
Get-UsersOrGroupsFromGraph -SearchString "gfd"
Get users who's UserPrincipalName starting with "gfd" from graph by calling graph service in version 1.6.
Parameters
-GraphApiVersion
Graph version to call. The default version is "1.6".
Parameter properties
Type: | String |
Default value: | 1.6 |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ObjectId
User object ID.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Id
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SearchString
Search string.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Search
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.