Sha256: d3a56d1459597042d5a59f41cae670c0f929acce04d6444118f9c835c4af8a1c
Contents?: true
Size: 1.93 KB
Versions: 45
Compression:
Stored size: 1.93 KB
Contents
# GroupUser ## Example GroupUser Object ``` { "name": "My Group", "id": 1, "admin": true, "usernames": [ ] } ``` * `name` (string): Group name * `id` (int64): Group ID * `admin` (boolean): Is this user an administrator of this group? * `usernames` (array): A list of usernames for users in this group * `group_id` (int64): Group ID to add user to. * `user_id` (int64): User ID to add to group. --- ## List Group Users ``` Files::GroupUser.list( user_id: 1, page: 1, per_page: 1, group_id: 1 ) ``` ### Parameters * `user_id` (int64): User ID. If provided, will return groups of which this user is a member. * `page` (int64): Current page number. * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended). * `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves. * `group_id` (int64): Group ID. If provided, will return members of this group. --- ## Update Group User ``` Files::GroupUser.update(id, group_id: 1, user_id: 1, admin: true ) ``` ### Parameters * `id` (int64): Required - Group User ID. * `group_id` (int64): Required - Group ID to add user to. * `user_id` (int64): Required - User ID to add to group. * `admin` (boolean): Is the user a group administrator? --- ## Delete Group User ``` Files::GroupUser.delete(id) ``` ### Parameters * `id` (int64): Required - Group User ID. --- ## Update Group User ``` group_user = Files::GroupUser.find(1) group_user.update( group_id: 1, user_id: 1, admin: true ) ``` ### Parameters * `id` (int64): Required - Group User ID. * `group_id` (int64): Required - Group ID to add user to. * `user_id` (int64): Required - User ID to add to group. * `admin` (boolean): Is the user a group administrator? --- ## Delete Group User ``` group_user = Files::GroupUser.find(1) group_user.delete ``` ### Parameters * `id` (int64): Required - Group User ID.
Version data entries
45 entries across 45 versions & 1 rubygems