← All XDRInternals commands

POWERSHELL COMMAND

Get-XdrEndpointDeviceRbacGroupScope

Retrieves all RBAC groups from Microsoft Defender for Endpoint.

View source ↗

Gets a list of all Role-Based Access Control (RBAC) device groups from the Microsoft Defender XDR portal. This function includes caching support with a 30-minute TTL to reduce API calls.

Syntax

Get-XdrEndpointDeviceRbacGroupScope [-Force] [<CommonParameters>]

Parameters

-Force

Property Value
Type SwitchParameter
Required No
Position named
Pipeline input No
Default False

Bypasses the cache and forces a fresh retrieval from the API.

Examples

Get-XdrEndpointDeviceRbacGroupScope
Retrieves all RBAC groups using cached data if available.
Get-XdrEndpointDeviceRbacGroupScope -Force
Forces a fresh retrieval of RBAC groups, bypassing the cache.

Output

Type: Array

Returns an array of RBAC group objects.

View source