new module:api/GroupsApi(apiClient)
- Source:
Constructs a new GroupsApi.
Parameters:
Name | Type | Description |
---|---|---|
apiClient |
module:ApiClient | Optional API client implementation to use, |
Methods
createGroups(accountId, optsOrCallback, callback)
- Source:
Creates one or more groups for the account.
Creates one or more groups for the account.
Groups can be used to help manage users by associating users with a group. You can associate a group with a Permission Profile, which sets the user permissions for users in that group without having to set the userSettings
property for each user. You are not required to set Permission Profiles for a group, but it makes it easier to manage user permissions for a large number of users. You can also use groups with template sharing to limit user access to templates.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||
callback |
module:api/GroupsApi~createGroupsCallback | The callback function, accepting three arguments: error, data, response |
deleteBrands(accountId, groupId, optsOrCallback, callback)
- Source:
Deletes brand information from the requested group.
Deletes brand information from the requested group.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||
groupId |
String | The ID of the group being accessed. |
||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||
callback |
module:api/GroupsApi~deleteBrandsCallback | The callback function, accepting three arguments: error, data, response |
deleteGroups(accountId, optsOrCallback, callback)
- Source:
Deletes an existing user group.
Deletes an existing user group.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||
callback |
module:api/GroupsApi~deleteGroupsCallback | The callback function, accepting three arguments: error, data, response |
deleteGroupUsers(accountId, groupId, optsOrCallback, callback)
- Source:
Deletes one or more users from a gro
Deletes one or more users from a group.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||
groupId |
String | The ID of the group being accessed. |
||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||
callback |
module:api/GroupsApi~deleteGroupUsersCallback | The callback function, accepting three arguments: error, data, response |
getBrands(accountId, groupId, callback)
- Source:
Gets group brand ID Information.
Retrieves information about the brands associated with the requested group.
Parameters:
Name | Type | Description |
---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
groupId |
String | The ID of the group being accessed. |
callback |
module:api/GroupsApi~getBrandsCallback | The callback function, accepting three arguments: error, data, response |
listGroups(accountId, optsOrCallback, callback)
- Source:
Gets information about groups associated with the account.
Retrieves information about groups associated with the account.
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||||||||||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||||||||||||||
callback |
module:api/GroupsApi~listGroupsCallback | The callback function, accepting three arguments: error, data, response |
listGroupUsers(accountId, groupId, optsOrCallback, callback)
- Source:
Gets a list of users in a group.
Retrieves a list of users in a group.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
|||||||||
groupId |
String | The ID of the group being accessed. |
|||||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
|||||||||
callback |
module:api/GroupsApi~listGroupUsersCallback | The callback function, accepting three arguments: error, data, response |
updateBrands(accountId, groupId, optsOrCallback, callback)
- Source:
Adds group brand ID information to a group.
Adds group brand ID information to a group.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||
groupId |
String | The ID of the group being accessed. |
||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||
callback |
module:api/GroupsApi~updateBrandsCallback | The callback function, accepting three arguments: error, data, response |
updateGroups(accountId, optsOrCallback, callback)
- Source:
Updates the group information for a group.
Updates the group name and modifies, or sets, the permission profile for the group.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||
callback |
module:api/GroupsApi~updateGroupsCallback | The callback function, accepting three arguments: error, data, response |
updateGroupUsers(accountId, groupId, optsOrCallback, callback)
- Source:
Adds one or more users to an existing group.
Adds one or more users to an existing group.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||
groupId |
String | The ID of the group being accessed. |
||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||
callback |
module:api/GroupsApi~updateGroupUsersCallback | The callback function, accepting three arguments: error, data, response |
Type Definitions
createGroupsCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the createGroups operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/GroupInformation | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
deleteBrandsCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the deleteBrands operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/GroupBrands | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
deleteGroupsCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the deleteGroups operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/GroupInformation | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
deleteGroupUsersCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the deleteGroupUsers operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/UsersResponse | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
getBrandsCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the getBrands operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/GroupBrands | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
listGroupsCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the listGroups operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/GroupInformation | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
listGroupUsersCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the listGroupUsers operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/UsersResponse | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
updateBrandsCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the updateBrands operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/GroupBrands | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
updateGroupsCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the updateGroups operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/GroupInformation | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
updateGroupUsersCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the updateGroupUsers operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/UsersResponse | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |