Skip to content

Identity Store

CloudMock emulates AWS Identity Store, supporting user, group, and group membership management for IAM Identity Center.

OperationStatusNotes
CreateUserSupportedCreates a user
DescribeUserSupportedReturns user details
ListUsersSupportedLists all users
DeleteUserSupportedDeletes a user
CreateGroupSupportedCreates a group
DescribeGroupSupportedReturns group details
ListGroupsSupportedLists all groups
DeleteGroupSupportedDeletes a group
CreateGroupMembershipSupportedAdds a user to a group
GetGroupMembershipIdSupportedReturns a membership ID
ListGroupMembershipsSupportedLists group memberships
DeleteGroupMembershipSupportedRemoves a user from a group
import { IdentitystoreClient, CreateUserCommand } from '@aws-sdk/client-identitystore';
const client = new IdentitystoreClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
const { UserId } = await client.send(new CreateUserCommand({
IdentityStoreId: 'd-1234567890',
UserName: 'jdoe',
Name: { GivenName: 'John', FamilyName: 'Doe' },
DisplayName: 'John Doe',
}));
console.log(UserId);
import boto3
client = boto3.client('identitystore',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
response = client.create_user(
IdentityStoreId='d-1234567890',
UserName='jdoe',
Name={'GivenName': 'John', 'FamilyName': 'Doe'},
DisplayName='John Doe')
print(response['UserId'])
cloudmock.yml
services:
identitystore:
enabled: true
  • Not connected to a real IAM Identity Center instance
  • User authentication is not supported
  • Identity store IDs are accepted but not validated