Groups
A Group is a powerful tool for permissions and user management on Files.com. Users can belong to multiple groups.
All permissions can be managed via Groups, and Groups can also be synced to your identity platform via LDAP or SCIM.
Files.com's Group Admin feature allows you to define Group Admins, who then have access to add and remove users within their groups.
List Groups
SDK Method
group.List()
Return Object
[]*Group
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Folder Admin permissions.
GroupListParams Fields
| Field | Description |
|---|---|
| Ids string | Comma-separated list of group ids to include in results. |
| IncludeParentSiteGroups boolean | Include groups from the parent site. |
Additional Arguments
Show Group
SDK Method
group.Find()
Return Object
Group
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Folder Admin permissions.
GroupFindParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Group ID. |
Create Group
SDK Method
group.Create()
Return Object
Group
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
GroupCreateParams Fields
| Field | Default | Description |
|---|---|---|
| Notes string | Group notes. | |
| UserIds string | A list of user ids. If sent as a string, should be comma-delimited. | |
| AdminIds string | A list of group admin user ids. If sent as a string, should be comma-delimited. | |
| AiAssistantPersonalityId int64 | AI Assistant Personality ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user or Partner assignment overrides it. | |
| FtpPermission boolean | false | If true, users in this group can use FTP to login. This will override a false value of ftp_permission on the user level. |
| SftpPermission boolean | false | If true, users in this group can use SFTP to login. This will override a false value of sftp_permission on the user level. |
| DavPermission boolean | false | If true, users in this group can use WebDAV to login. This will override a false value of dav_permission on the user level. |
| RestapiPermission boolean | false | If true, users in this group can use the REST API to login. This will override a false value of restapi_permission on the user level. |
| DesktopConfigurationProfileId int64 | Desktop Configuration Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it. | |
| IntegrationCentricProfileId int64 | Integration Centric Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it. | |
| AllowedIps string | A list of allowed IPs if applicable. Newline delimited | |
| Name string Required | Group name. | |
| WorkspaceId int64 | 0 | Workspace ID |
Update Group
SDK Method
group.Update()
Return Object
Group
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
GroupUpdateParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Group ID. |
| Notes string | Group notes. |
| UserIds string | A list of user ids. If sent as a string, should be comma-delimited. |
| AdminIds string | A list of group admin user ids. If sent as a string, should be comma-delimited. |
| AiAssistantPersonalityId int64 | AI Assistant Personality ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user or Partner assignment overrides it. |
| FtpPermission boolean | If true, users in this group can use FTP to login. This will override a false value of ftp_permission on the user level. |
| SftpPermission boolean | If true, users in this group can use SFTP to login. This will override a false value of sftp_permission on the user level. |
| DavPermission boolean | If true, users in this group can use WebDAV to login. This will override a false value of dav_permission on the user level. |
| RestapiPermission boolean | If true, users in this group can use the REST API to login. This will override a false value of restapi_permission on the user level. |
| DesktopConfigurationProfileId int64 | Desktop Configuration Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it. |
| IntegrationCentricProfileId int64 | Integration Centric Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it. |
| AllowedIps string | A list of allowed IPs if applicable. Newline delimited |
| Name string | Group name. |
Delete Group
SDK Method
group.Delete()
Return Object
No return value.
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
GroupDeleteParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Group ID. |
The Group Object
Some of the methods above return a Group object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| Id int64 | Group ID |
| Name string | Group name |
| AllowedIps string | A list of allowed IPs if applicable. Newline delimited |
| AdminIds string | Comma-delimited list of user IDs who are group administrators (separated by commas) |
| Notes string | Notes about this group |
| UserIds string | Comma-delimited list of user IDs who belong to this group (separated by commas) |
| Usernames string | Comma-delimited list of usernames who belong to this group (separated by commas) |
| AiAssistantPersonalityId int64 | AI Assistant Personality ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user or Partner assignment overrides it. |
| FtpPermission boolean | If true, users in this group can use FTP to login. This will override a false value of ftp_permission on the user level. |
| SftpPermission boolean | If true, users in this group can use SFTP to login. This will override a false value of sftp_permission on the user level. |
| DavPermission boolean | If true, users in this group can use WebDAV to login. This will override a false value of dav_permission on the user level. |
| RestapiPermission boolean | If true, users in this group can use the REST API to login. This will override a false value of restapi_permission on the user level. |
| DesktopConfigurationProfileId int64 | Desktop Configuration Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it. |
| IntegrationCentricProfileId int64 | Integration Centric Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it. |
| SiteId int64 | Site ID |
| WorkspaceId int64 | Workspace ID |