Cloud concept · Updated

Security Principals - Security principals are identities that an access-control system recognizes as callers or as entities to which it can assign access.

In short

A security principal can represent a person, a workload, or, where supported, a group that receives access on behalf of its members. Choosing the right principal makes permissions easier to manage, actions easier to attribute, and access easier to revoke.

Cloud Concepts Hub →

5 key aspects of Security Principals

Identify the actual caller, assign permissions to the appropriate principal at the right scope, and verify effective access when identities or assignments change.

01
Identity, credentials, and permissions

Keep the principal separate from the credential used to authenticate and the permissions that authorize an action. When a signed-in caller is denied access, check the target's authorization rules rather than assuming authentication failed.

02
Users and groups

Use individual accounts for sign-in and attribution, and grant shared access through supported groups. Assign an owner to each access group and review who can change its membership.

03
Dedicated workload identities

Use a separate identity for each workload and environment where practical. Prefer short-lived credentials and grant only the actions the workload needs at the narrowest supported scope.

04
Resource-local principal mapping

Check whether a service can authorize a directory identity directly or requires a local principal. When a database requires a mapped user, create it in the target database and assign database permissions separately.

05
Effective access and revocation

Inspect direct grants, group memberships, and inherited permissions together. After removing access, verify the result at the target and account for any existing sessions or cached credentials.

Cloud services for Security Principals

Microsoft Entra ID and Azure SQL Database illustrate the handoff between identity and resource authorization: Entra ID issues a token, and Azure SQL Database validates it, maps the identity to a database principal, and evaluates database permissions. AWS IAM and Google Cloud IAM apply the same general model to cloud resource APIs, but use different rules for roles and groups. In each environment, trace the request from the identity that authenticated to the principal the target recognizes and the permissions that apply at that resource.

Azure SQL Database

Supports contained database users mapped to Microsoft Entra users, groups, and workload identities. Database grants and role memberships determine what those principals can do in the database.

What is Security Principals

2 min read

A security principal is the identity an access-control system recognizes when deciding who can do what. Authentication establishes the caller's identity; authorization determines whether the caller can perform an action on a resource. A password, certificate, or access token is not the principal: it is a credential presented to authenticate or make a request. A valid token does not, by itself, grant access to every resource that accepts it.

Give each person an individual user account, but grant common access through a group when the target supports it. For example, grant a Finance Reporting security group read access to a shared workspace. Analysts still sign in with their own accounts, and access comes from their group membership, not from a shared group login. Use a direct user assignment for an individual exception, and give it an expiry where supported. Confirm which group types the target accepts: a distribution list is not automatically eligible for access grants, and some services do not evaluate nested groups.

Give applications and automation dedicated workload identities rather than running them under an employee's account. A nightly export job might use a managed or federated identity that can read one dataset and write to one storage location. Short-lived credentials reduce the need to distribute and rotate stored secrets, but they do not limit what the identity can do; that requires scoped permissions. Also check what the platform means by role. An assumed cloud role can produce a session that acts as the caller, while a database role typically collects permissions for its members and does not sign in itself.

Some services require an external identity to be mapped to a local principal. In Azure SQL Database, after configuring Microsoft Entra authentication, connect to the target database as an authorized administrator and use CREATE USER [Finance Reporting] FROM EXTERNAL PROVIDER; to create a contained database user for the Entra group. Then grant the mapped principal SELECT on the required reporting views, or add it to a custom database role that holds those grants. This creates a database principal, not a new directory account. A contained database user does not require a separate server login for this access path. A cloud role that permits management of the database resource does not by itself grant permission to query its data.

Group assignments reduce repetitive grants, but overlapping groups, direct assignments, and inherited permissions can make effective access harder to explain. When troubleshooting, start with the identity the request actually used, confirm how the target mapped it, and inspect permissions at the resource's scope. Use stable principal identifiers rather than display names where supported: deleting and recreating an account with the same name can produce a different identity. When revoking access, check for other grant paths and verify whether cached membership, existing tokens, or active sessions delay the change.

Security Principals exam questions

Real practice exam questions on Security Principals, with the correct answer and its explanation. Answer them with every option in the exam simulator.

DVA-C03

A batch application in a processing account writes daily exports to an Amazon S3 bucket in an audit account. Each run uses temporary credentials from the ExportWriter IAM role and receives a different session name. The role's identity policy already allows s3:PutObject on the export prefix, but the bucket policy does not allow access from the processing account. Other roles in that account also have identity policies that allow s3:PutObject on the prefix. The audit team wants the bucket policy to allow every session of ExportWriter without allowing any of those other roles. How should the developer configure the principal in the bucket policy's Allow statement for s3:PutObject on the export prefix?

Show answerCORRECT ANSWER

Set the `AWS` principal to the IAM role ARN for `ExportWriter`.

An S3 bucket policy can name an IAM role as its principal. The grant applies to requests made with credentials from sessions of that role, regardless of the session name, and does not grant access to other roles in the account.

Practice Security Principals in a full exam

Questions on Security Principals in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn Security Principals in lessons

1 short lesson on Security Principals in 1 certification course.

Open the lessons