Skip to main content
Version: Next

Model people and access

Say who signs in where, and with which role. People are modeled where the landscape knows them: as accounts in an identity provider, and as the roles those accounts have in the applications they use. A model never names a person. The guide grows one small model, a shop, a step at a time, and every step is a whole model that builds with no error or lint: type it into model/ in a repository kq init made, and check it with kq validate or in VS Code as you type. Every statement used here is described in full in Identity and access.

Mark your identity providers​

Write idp after a component's or a monolith's kind, before technology, to mark it an identity provider, such as Entra ID, Keycloak or a mainframe's own user store. Inside it, an identity is a population of accounts of one persona: employee or freelancer inside the organization, customer, b2b-representative or auditor outside it. The shop keeps its staff in one directory and its customers in another:

ecosystem shop "Shop" { platform iam "Identity" { component staff-idp "Staff directory" : saas idp technology "Entra ID" { identity staff "Staff" : employee identity contractors "Contractors" : freelancer } component customer-idp "Customer identity" : saas idp technology "Azure AD B2C" { identity customers "Customers" : customer } } }

An identity provider may hold identities of several personas: the staff directory holds the staff, who are employees, and the contractors, who are freelancers. See Identity providers, identities and roles.

Give each application its roles​

A role is written inside the application people use, a component or a monolith that holds a user interface of its own. in names the identity provider whose accounts hold the role, and may reach another platform, and the role has one persona. Add the web shop the customers use and the back office the staff use:

ecosystem shop "Shop" { platform iam "Identity" { component staff-idp "Staff directory" : saas idp technology "Entra ID" { identity staff "Staff" : employee identity contractors "Contractors" : freelancer } component customer-idp "Customer identity" : saas idp technology "Azure AD B2C" { identity customers "Customers" : customer } } platform storefront "Storefront" { component web-shop "Web Shop" : user-facing-app { spa web-shop-ui "Web Shop" role shopper "Shopper" in iam/customer-idp : customer } component back-office "Back Office" : user-facing-app { spa back-office-ui "Back Office" role clerk "Clerk" in iam/staff-idp : employee role catalog-editor "Catalog editor" in iam/staff-idp : freelancer } } }

Who holds a role is not written. It is every identity of the role's persona in the provider it names: the customers hold Shopper, the staff hold Clerk and the contractors hold Catalog editor. A role whose provider has no identity of its persona is KQ042, since nobody could hold it. See Identity providers, identities and roles.

Say why people have their access​

A job role is a position in your organization, written in the ecosystem, and holds names each role a person in that position gets. Its persona is employee or freelancer, and every role it holds has its persona. Add the order clerk and the merchandiser:

ecosystem shop "Shop" { platform iam "Identity" { component staff-idp "Staff directory" : saas idp technology "Entra ID" { identity staff "Staff" : employee identity contractors "Contractors" : freelancer } component customer-idp "Customer identity" : saas idp technology "Azure AD B2C" { identity customers "Customers" : customer } } platform storefront "Storefront" { component web-shop "Web Shop" : user-facing-app { spa web-shop-ui "Web Shop" role shopper "Shopper" in iam/customer-idp : customer } component back-office "Back Office" : user-facing-app { spa back-office-ui "Back Office" role clerk "Clerk" in iam/staff-idp : employee role catalog-editor "Catalog editor" in iam/staff-idp : freelancer } } job-role order-clerk "Order clerk" : employee { holds storefront/back-office/clerk } job-role merchandiser "Merchandiser" : freelancer { holds storefront/back-office/catalog-editor } }

Nothing assigns a person to a job role. Once an ecosystem has a job role, a role of an internal persona that no job role holds is reported, KQ120: without the merchandiser, no position would explain the catalog editor's access. See Job roles.

See what you modeled​

An identity provider's IAM view answers who signs in there and to what: its identities at the top, the roles they hold, the applications those roles are in, and the provider at the foot. The staff directory's, drawn from the last step:

The diagram in words

Staff directory · IAM view of an Identity Provider

Identities

  • Staff (Identity: Employee)
  • Contractors (Identity: Freelancer)

Roles

  • Clerk (Role: Employee)
  • Catalog editor (Role: Freelancer)

Applications

  • Storefront (Platform)
    • Back Office (User-facing app)
      • Back Office (SPA)

Identity Providers

  • Identity (Platform)
    • Staff directory (SaaS): the view's subject

Lines

  • Staff → Clerk: holder
  • Contractors → Catalog editor: holder
  • Back Office → Clerk: use
  • Back Office → Catalog editor: use

In VS Code, the viewer draws it as you type. See IAM view.

Where next​

© 2026 Extenza Works. All rights reserved.