mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 22:37:55 -05:00
Identity Store checked only that an IdentityStoreId was well formed, so any account could read and change the users, groups and memberships of any store, the default account's IAM Identity Center store among them. The IAM Identity Center User Guide says who may use an organization instance's store: "Member accounts have access to Read actions on both the sso-directory and identitystore namespaces", while adding, editing or deleting users or groups is the management account's and a delegated administrator's. SsoAdminService now answers how an account may use a store from the instance that holds it: its own account, and a delegated administrator for IAM Identity Center in an organization instance's organization, in full; another account of that organization to read; any other account not at all. Identity Store's handler refuses a store an account cannot see as ResourceNotFoundException (ResourceType IDENTITY_STORE) and a change from an account that may only read as AccessDeniedException. A store no instance holds is used as before.