steampipe plugin install azuread

Table: azuread_application_app_role_assigned_to - Query Application Role Assignments granted for Azure Active Directory Application using SQL

Azure Active Directory (Azure AD) is Microsoft's multi-tenant, cloud-based directory, and identity management service. It combines core directory services, application access management, and identity protection into a single solution. Azure AD also offers a rich, standards-based platform that enables developers to deliver access control to their applications, based on centralized policy and rules.

Table Usage Guide

The azuread_application_app_role_assigned_to table provides insights application roles assigned for applications within Microsoft's Azure Active Directory. As an IT administrator, you can explore app role assignment-specific details through this table, including the application ID, display name, role, and more. Utilize it to uncover granted app permissions, aiding in the management and security of your organization's resources.

Examples

Basic info

Explore which Application Role Assignments are granted for an Azure Active Directory application. This can be useful for understanding which principles can access the application.

select
resource_id,
resource_display_name,
app_role_id,
principal_id,
principal_type,
principal_display_name,
created_date_time,
deleted_date_time
from
azuread_application_app_role_assigned_to
where
app_id = '<app_id>';
select
resource_id,
resource_display_name,
app_role_id,
principal_id,
principal_type,
principal_display_name,
created_date_time,
deleted_date_time
from
azuread_application_app_role_assigned_to
where
app_id = '<app_id>';

List all application role assignments granted for applications

Explore which principals in your Azure Active Directory have Application Role Assignments for an Azure Active Directory application. This information is useful for auditing purposes and ensuring adherence to security protocols.

select
azuread_application_app_role_assigned_to.app_id,
azuread_application_app_role_assigned_to.resource_id,
azuread_application_app_role_assigned_to.resource_display_name,
azuread_application_app_role_assigned_to.app_role_id,
azuread_application_app_role_assigned_to.created_date_time,
azuread_application_app_role_assigned_to.deleted_date_time
from
azuread_application
join azuread_application_app_role_assigned_to on azuread_application_app_role_assigned_to.app_id = azuread_application.app_id;
select
azuread_application_app_role_assigned_to.app_id,
azuread_application_app_role_assigned_to.resource_id,
azuread_application_app_role_assigned_to.resource_display_name,
azuread_application_app_role_assigned_to.app_role_id,
azuread_application_app_role_assigned_to.created_date_time,
azuread_application_app_role_assigned_to.deleted_date_time
from
azuread_application
join azuread_application_app_role_assigned_to on azuread_application_app_role_assigned_to.app_id = azuread_application.app_id;

Schema for azuread_application_app_role_assigned_to

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
app_idtext=The identifier (id) of the user principal.
app_role_idtextThe identifier (id) for the app role which is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application has not declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles.
created_date_timetimestamp with time zoneThe time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
deleted_date_timetimestamp with time zoneThe date and time when the app role assignment was deleted. Always null for an appRoleAssignment object that hasn't been deleted.
idtext=A unique identifier for the appRoleAssignment key.
principal_display_nametext=The display name of the user, group, or service principal that was granted the app role assignment.
principal_idtextThe unique identifier (id) for the user, security group, or service principal being granted the app role.
principal_typetextThe type of the assigned principal. This can either be User, Group, or ServicePrincipal.
resource_display_nametextThe display name of the resource app's service principal to which the assignment is made.
resource_idtext=The unique identifier (id) for the resource service principal for which the assignment is made.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- azuread

You can pass the configuration to the command with the --config argument:

steampipe_export_azuread --config '<your_config>' azuread_application_app_role_assigned_to