For the complete documentation index, see llms.txt. This page is also available as Markdown.

AWS Identity Center Integration Setup

Getting Started

Your AWS account must have AWS Organizations and AWS IAM Identity Center actually enabled before starting. This is an account/organization-level feature toggle, separate from any IAM permission. If Identity Center isn't enabled, extraction fails with "No instances found" regardless of the IAM policy attached.

There are two supported ways to grant BalkanID access to your account. Pick whichever fits your environment, both are fully supported.

Requirements

Option 1: Using an IAM Role

  • IAM Role ARN

  • AWS Region

  • External ID (optional, but highly recommended; BalkanID generates this value, see below)

Option 2: Using an IAM User

  • Access Key ID

  • Secret Access Key

  • AWS Region

  • A dedicated service account, rather than a personal or employee-named account, for creating this access key (strongly recommended, see below)

Getting the Configuration

Option 1: Using an IAM Role

We use an IAM User called balkan-service-user, which assumes the IAM Role you provide, to connect to your AWS account.

  1. Navigate to the AWS Web Console, Roles section.

  2. Click Create role.

  3. Set Trusted entity type to Custom trust policy and paste the policy below. Leave the

    External ID condition off for now. You will add it after BalkanID generates a value. See Protecting your role with an External ID.

    Note: the Account ID above (015482169847) is our shared BalkanID service-user account, used for every customer on this trust policy. After you generate an External ID in BalkanID, add an sts:ExternalId condition so your role stays isolated from other tenants that share the same BalkanID principal.

  4. In the Permissions policies section, create a customer-managed policy using the JSON in

    Least-privilege permissions policy below, and attach it to this role.

  5. In the next section, set the IAM Role Name and Description, then click Create role.

  6. Once created, set Maximum session duration to 12 hours.

  7. Copy the ARN from the role's ARN field (just above Maximum session duration).

Protecting your role with an External ID

An External ID is optional, but highly recommended. On our standard, shared environment, every customer's trust policy names the same balkan-service-user principal, so without an External ID the only thing distinguishing your role from any other customer's is the secrecy of your Role ARN. BalkanID mints a tenant-specific value and sends it on sts:AssumeRole. You cannot type or paste your own External ID.

  1. Finish creating the role and save the integration in BalkanID with the Role ARN and Region

    (see Configuring AWS Identity Center on BalkanID Tenant).

  2. On the integration form, next to External ID, click Generate. BalkanID stores a value

    of the form balkanid-<uuid>.

  3. Click the copy control on the field.

  4. In AWS, edit the role's Trust relationships policy and add the condition below, using the

    copied value. Then save the policy.

  5. Sync the integration. If the trust-policy value does not match exactly, sts:AssumeRole

    fails with AccessDenied.

To replace an existing External ID, click Rotate in BalkanID, copy the new value, and update sts:ExternalId in the trust policy before the next sync. Rotating invalidates the previous value. Leaving External ID empty means BalkanID will not send one (Role ARN only).

If your organization requires isolation stronger than Role ARN + External ID, contact support@balkan.id to discuss your options.

Option 2: Getting the Access Key and Secret Access Key

  1. Create a dedicated IAM user for this integration first (AWS Console, Users, Create user, e.g. balkanid-identitycenter-integration). Do not generate this access key under your own (or any other individual's) AWS Console user. A key tied to a named human user inherits that person's account lifecycle: if they leave, rotate their password, or lose console access, the integration can break unexpectedly or, worse, keep running on a credential nobody is actively tracking as a live secret. A dedicated service IAM user has a lifecycle you control independently of any individual's employment status.

  2. In the Permissions step, choose Attach policies directly, then Create policy to

    open the policy editor in a new tab. Paste the JSON from Least-privilege permissions policy below, name it (for example BalkanIDLeastPrivilegePolicy), and save it. Back in the user wizard, refresh the policy list and select it.

  3. On this user, go to Security credentials, scroll to Access Keys.

  4. Click Create Access Key, select Third-party service when prompted for a use case, and click Next.

  5. Provide a description and click Create Access Key. You'll be shown your credentials.

  6. Make a note of the Access Key and Secret Access Key. Your Region is the AWS Region your AWS Identity Center is configured in. Check the region selector next to your account name in the top-right of the console.

Do not generate an External ID on this path. External ID is an sts:AssumeRole trust-policy condition. Static access keys never call AssumeRole, and BalkanID rejects External ID together with access keys. If your organization can create cross-account IAM roles, prefer Option 1.

Least-privilege permissions policy

This is the exact list of AWS API calls this integration makes. Attach it as a customer-managed policy to the role or user you created above.

The exact permissions you need depend on which entity types you turn on under Selective Extraction. In your BalkanID tenant, on this integration's Data Sync Preferences screen, the Required API Scopes panel lists the exact IAM actions needed for whatever you've selected there, and updates live as you check or uncheck entities. Use it to confirm which statements below you actually need.

organizations:ListAccounts appears in both BalkanIDPermissionSets and BalkanIDAccounts on purpose, since each toggle needs it independently. Remove only the statement for a toggle you've disabled.

Why every statement is Resource: "*". The AWS SSO Admin and Identity Store APIs don't support resource-level scoping for these actions. Attach this policy to a role dedicated to this integration, rather than trying to restrict Resource further.

You can validate this policy against your account without attaching it to anything:

simulate-custom-policy validates the policy document itself, not whether Identity Center is enabled in your account. See the note under Getting Started.

Optional, early-access permissions

Last access time for applications and last login time for users

Not enabled by default. Rolled out to tenants on request. Contact your BalkanID account team if you want this; attaching the permission ahead of time doesn't activate the feature by itself, but is required once it's enabled so extraction doesn't fail with AccessDenied.

This is used for exactly two lookups, both filtered by CloudTrail's own EventName attribute:

  • Federate events (EventSource: sso.amazonaws.com) → per-user, per-application last access time (also requires the Applications Selective Extraction toggle enabled).

  • UserAuthentication events (EventSource: signin.amazonaws.com) → per-user last login time (also requires the Users Selective Extraction toggle enabled).

This is the one place in this integration that can't be scoped further. cloudtrail:LookupEvents has no resource-level permissions or conditions, so granting it gives read access to your account's full CloudTrail management-event history (which control-plane APIs were called and by whom, not log contents or resource data). Skip this permission if that's not acceptable; every other entity type still syncs normally.

Selective Extraction permissions

Selective Extraction toggle
IAM/API actions required
Notes

(always)

sso:ListInstances

Required to locate your Identity Center instance before any entity sync; not tied to a toggle

Users

identitystore:ListUsers

Groups

identitystore:ListGroups, identitystore:ListGroupMemberships

Permission Sets

sso:ListPermissionSets, sso:DescribePermissionSet, sso:ListManagedPoliciesInPermissionSet, sso:ListCustomerManagedPolicyReferencesInPermissionSet, sso:ListAccountAssignments, organizations:ListAccounts

organizations:ListAccounts is required here too (account assignments are resolved per account), even if the Accounts toggle itself is off

Applications

sso:ListApplications, sso:ListApplicationAssignments

Accounts

organizations:ListAccounts

Disable a toggle and the corresponding actions are simply never called, so it's safe to remove the matching policy statement.

Configuring AWS Identity Center on BalkanID Tenant

  1. Login to the BalkanID application and switch to the tenant you would like to add your integration to.

  2. Head to Integrations > Add Integration, select AWS Identity Center.

  3. Set up the Primary Application owner (mandatory) and the Description, if any. Set up Secondary Application Owner(s), if any.

  4. Configure Selective Extraction toggles (see the table above).

  5. In the Direct Integration section provide your Role ARN or Access Key + Secret Access Key, and Region obtained above. After you save a Role ARN integration, click Generate on External ID (highly recommended), copy the value, and add it to the role's trust policy as described in Protecting your role with an External ID

  6. Click on next to move onto Optional Configuration.

  7. Fill Optional configuration, if required.

  8. Once you filled in the information, click Save. Your integration is now configured and you will see the status of the integration displayed alongside other integrations on the Integrations page. When data is available, the integration Status will read Connected and the integration Message will read Data available.

Last updated

Was this helpful?