Sha256: 82b3e1388022ac7768a5bf66f05cc0d5e7bebcf6f15526551acdc473a68847a8

Contents?: true

Size: 1.98 KB

Versions: 1

Compression:

Stored size: 1.98 KB

Contents

# GroupUser

## Example GroupUser Object

```
{
  "group_name": "My Group",
  "group_id": 1,
  "user_id": 1,
  "admin": true,
  "usernames": [

  ],
  "name": "",
  "id": ""
}
```

* `group_name` (string): Group name
* `group_id` (int64): Group ID
* `user_id` (int64): User ID
* `admin` (boolean): Is this user an administrator of this group?
* `usernames` (array): A list of usernames for users in this group
* `name` (string): 
* `id` (string): 


---

## 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 group_users of this user.
* `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 group_users 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.list_for(path).first

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.list_for(path).first

group_user.delete
```

### Parameters

* `id` (int64): Required - Group User ID.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
files.com-1.0.67 docs/group_user.md