IRPCVault.GetUsersAndUserGroups

View as Markdown

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

Gets all users and normal user groups of the vault as JSON.

ServiceVault information MFiles.IRPCVault
gRPC method/MFiles.IRPCVault/GetUsersAndUserGroups
HTTP (mf-http-grpc)POST /grpc/v1/get-users-and-user-groups
RequestGetUsersAndUserGroupsRequest
ResponseGetUsersAndUserGroupsResponse
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

Prefer GetUsersAndUserContainers, which returns the same kind of data as typed messages.

users and groups are UTF-8 JSON arrays followed by one NUL byte, each zlib-compressed unless its length field is 4294967295. Users are {"key": <user ID>, "name": "<full name>"}; groups are {"id": ..., "name": ..., "members": [<user IDs and group IDs>], "type": "normal"}. Only normal user groups are included.

Request: GetUsersAndUserGroupsRequest

No fields.

Response: GetUsersAndUserGroupsResponse

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

FieldTypeDescription
usersbytesNUL-terminated JSON array of users (key, name), zlib-compressed unless uncompressed_users_length is 4294967295.
uncompressed_users_lengthuint32Size of the decompressed users, or 4294967295 if users is not compressed.
groupsbytesNUL-terminated JSON array of user groups (id, name, members, type), zlib-compressed unless uncompressed_groups_length is 4294967295.
uncompressed_groups_lengthuint32Size of the decompressed groups, or 4294967295 if groups is not compressed.