Get-EntraBetaCrossTenantAccessActivity
Get cross-tenant user sign-in activity.
Syntax
Default (Default)
Get-EntraBetaCrossTenantAccessActivity
[-AccessDirection]
[-ExternalTenantId <String>]
[-SummaryStats]
[-ResolveTenantId]
[<CommonParameters>]
Description
The Get-EntraBetaCrossTenantAccessActivity
cmdlet retrieves user sign-in activity associated with external tenants. By default, it includes both outbound connections (local users accessing an external tenant) and inbound connections (external users accessing the local tenant).
In addition to delegated permissions, the signed-in user must belong to at least one of the following Microsoft Entra roles to read sign-in reports:
- Global Reader
- Reports Reader
- Security Reader
Parameters
-AccessDirection
Filters sign-in events by direction.
Parameter properties
Type: | System.String |
Default value: | Both |
Supports wildcards: | False |
DontShow: | False |
Aliases: | None |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ExternalTenantId
Specifies a target external tenant ID.
Parameter properties
Type: | System.Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | None |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ResolveTenantId
Resolves external tenant ID details.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | None |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SummaryStats
Shows summary statistics for sign in events.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | None |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
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.