Get users from environment
Get-BapEnvironmentUser [-EnvironmentId] <String> [-IncludeAppIds] [-AsExcelOutput] [<CommonParameters>]
Enables the user to fetch all users from the environment
Utilizes the built-in "systemusers" OData entity
Allows the user to include all users, based on those who has the ApplicationId property filled
Get-BapEnvironmentUser -EnvironmentId eec2c11a-a4c7-4e1d-b8ed-f62acc9c74c6
This will fetch all oridinary users from the environment.
Sample output: Email Name AppId Systemuserid
SYSTEM 5d2ff978-a74c-4ba4-8cc2-b4c5a23994f7 INTEGRATION baabe592-2860-4d1a-9365-e95317372498 [email protected] Austin Baker f85bcd69-ef72-45bd-a338-62670a8cef2a [email protected] Alex Denver 39309a5c-7676-4c8a-b702-719fb92c5151
Get-BapEnvironmentUser -EnvironmentId eec2c11a-a4c7-4e1d-b8ed-f62acc9c74c6
This will fetch all users from the environment. It will include the ones with the ApplicationId property filled.
Sample output: Email Name AppId Systemuserid
SYSTEM 5d2ff978-a74c-4ba4-8cc2-b4c5a23994f7 INTEGRATION baabe592-2860-4d1a-9365-e95317372498 [email protected] Austin Baker f85bcd69-ef72-45bd-a338-62670a8cef2a [email protected] AIBuilderProd, # 0a143f2d-2320-4141-… c96f82b8-320f-4c5e-ac84-1831f4dc7d5f
Get-BapEnvironmentUser -EnvironmentId eec2c11a-a4c7-4e1d-b8ed-f62acc9c74c6 -AsExcelOutput
This will fetch all oridinary users from the environment. Will output all details into an Excel file, that will auto open on your machine.
The id of the environment that you want to work against
This can be obtained from the Get-BapEnvironment cmdlet
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Instruct the cmdlet to include all users that are available from the "systemusers" OData Entity
Simply includes those who has the ApplicationId property filled
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instruct the cmdlet to output all details directly to an Excel file
This makes it easier to deep dive into all the details returned from the API, and makes it possible for the user to persist the current state
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Mötz Jensen (@Splaxi)