Get-UsersOrGroupsFromGraph
Returns users or groups from Graph.
Syntax
Get-UsersOrGroupsFromGraph
-ObjectId <String>
[-GraphApiVersion <String>]
[<CommonParameters>]
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 "12345ba9-805f-43f8-98f7-34fa34aa51a7"
Get user with user object ID "12345ba9-805f-43f8-98f7-34fa34aa51a7" 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".
Type: | String |
Position: | Named |
Default value: | 1.6 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ObjectId
User object ID.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SearchString
Search string.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |