Search account profiles
workspace_admin.profiles.list(**kwargs) -> CursorPagination<Profile { metadata, spec } >
GET/v1/account/profiles
Searches the account’s profiles for a member picker, with free-form name/email search and an optional type filter. Account-scoped; admin only.
Search account profiles
require "cadenya"
cadenya = Cadenya::Client.new(api_key: "My API Key")
page = cadenya.workspace_admin.profiles.list
puts(page){
"items": [
{
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"email": "email",
"name": "name"
}
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}Returns Examples
{
"items": [
{
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"email": "email",
"name": "name"
}
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}