Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 2.75 KB

sys-dm-server-external-policy-principal-assigned-actions-transact-sql.md

File metadata and controls

51 lines (41 loc) · 2.75 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sys.dm_server_external_policy_principal_assigned_actions (Transact-SQL)
Reference documentation to explain sys.dm_server_external_policy_principal_assigned_actions (Transact-SQL) dynamic management view.
srdan-bozovic-msft
srbozovi
11/07/2022
sql
system-objects
reference
dm_server_external_policy_principal_assigned_actions_TSQL
sys.dm_server_external_policy_principal_assigned_actions
dm_server_external_policy_principal_assigned_actions
sys.dm_server_external_policy_principal_assigned_actions_TSQL
sys.dm_server_external_policy_principal_assigned_actions dynamic management view
TSQL

sys.dm_server_external_policy_principal_assigned_actions (Transact-SQL)

[!INCLUDE sqlserver2022]

Lists all database and server principals created from Microsoft Entra ID (formerly Azure Active Directory), joined with roles, joined with their data actions.

Note

This view returns one record per assignment. If the same action has been assigned at multiple scopes (like via different role-assignments or different scopes), there will be multiple rows with the same action name in the result set.

Column name Data type Description
principal_sid varbinary(85) SID (Security-IDentifier) of the principal.
principal_aad_object_id nvarchar(36) Microsoft Entra Object ID of the principal. Is unique within an Azure tenant.
action_type nvarchar(256) The type of an operation: Connect, Select.
action_namespace nvarchar(20) The path or namespace on which the action type part applies to.
role_name nvarchar(128) ID for joining with other dynamic management views.
role_guid nvarchar(128) The role name as defined in external policy source. Has to be unique.
policy_guid nvarchar(128) Unique identifier of the policy that defines this assignment.
role_assignment_scope nvarchar(4000) The hierarchical representation of the resource(s) that this assignment applies to.
role_assignment_type int Type of the assignment: 1, 2
role_assignment_type_desc nvarchar(5) Type of the assignment description: Allow, Deny

Permissions

Principals must have the VIEW SERVER SECURITY STATE permission.

See also