Process Flow - Built-in roles (Owner, Contributor, Reader)
Assign Role to User
Check Role Type
Owner
Full Control
Access Granted Based on Role
Assign a built-in role to a user, then the system checks the role type and grants permissions accordingly.
AssignRole(user, role) CheckRoleType(role) GrantPermissions(user, permissions)
| Step | Action | Input | Role Type | Permissions Granted |
|---|---|---|---|---|
| 1 | Assign role to user | User: Alice, Role: Owner | Owner | Full control over resources |
| 2 | Assign role to user | User: Bob, Role: Contributor | Contributor | Can create, manage, and delete resources |
| 3 | Assign role to user | User: Carol, Role: Reader | Reader | Can view resources only |
| 4 | Check role type for Dave | User: Dave, Role: Unknown | None | No permissions granted |
| 5 | End | No more assignments | - | - |
| Variable | Start | After Step 1 | After Step 2 | After Step 3 | After Step 4 | Final |
|---|---|---|---|---|---|---|
| User | None | Alice | Bob | Carol | Dave | All users assigned |
| Role | None | Owner | Contributor | Reader | Unknown | Roles assigned or unknown |
| Permissions | None | Full control | Modify resources | View only | None | Permissions set per user |
Built-in roles control access in Azure: - Owner: Full control, including managing access - Contributor: Can create and manage resources but not assign roles - Reader: Can only view resources Assign roles to users to grant permissions accordingly.