IRPCVault.GetUsersAndUserContainers

View as Markdown

Vault API / core read session or assertion idempotent returns metadata structure version

Gets all users and all user groups of the vault.

ServiceVault information MFiles.IRPCVault
gRPC method/MFiles.IRPCVault/GetUsersAndUserContainers
HTTP (mf-http-grpc)POST /grpc/v1/get-users-and-user-containers
RequestGetUsersAndUserContainersRequest
ResponseGetUsersAndUserContainersResponse
Book and levelVault API, core
Kindread
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentyes
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Remarks

The typed way to list users and groups. users gives each user's ID (key) and full name; groups gives each group with its members (user IDs and group IDs). Includes groups of all types, unlike GetUserGroups.

Request: GetUsersAndUserContainersRequest

No fields.

Response: GetUsersAndUserContainersResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
users[]repeated KeyNamePairThe users: key is the user ID, name the full name.
users[].keyint32The unique key of the item.
users[].namestringThe display name of the item.
groups[]repeated UserGroupBasicThe user groups with their members.
groups[].idint32The ID of the user group.
groups[].namestringThe name of the group.
groups[].members[]repeated int32The IDs of the members of this group (user accounts and/or user groups).
groups[].typeUserGroupTypeUser group type.Values: USER_GROUP_TYPE_NORMAL (0), USER_GROUP_TYPE_REPOSITORY_USER (1), USER_GROUP_TYPE_REPOSITORY_GROUP (2), USER_GROUP_TYPE_ANY (-1).