User Management API

Read more about how you can manage users via our API

Updated over a week ago

Our user management API allows enterprise customers to manage their users in a simple yet effective way. With this API, you can:

  • Onboard or offboard your users

  • Control access permissions of the users

  • View user activity information such as last activity time or latest image generations

This API is available via our GraphQL API, available on api.app.layer.ai. Here's an example GraphQL call to make to get the users associated with a workspace:

query getWorkspaceUsers {
getWorkspaceByName(name: "demo") {
__typename
... on Workspace {
id
name
members(input:{pagination:{limit:100}}) {
list {
user {
id
email
}
role
lastActivityAt
}
}
}
... on Error {
code
message
data
}
}
}
Did this answer your question?