SecurityGroup
SecurityGroup Service
Web service endpoints for interacting with Jive security groups. See SecurityGroup for an example of the JSON representation.
Create Administrators
POST /securityGroups/{securityGroupID}/administrators
Add the specified people as administrators of the specified security group. If any error occurs while adding a particular user, all adds will be rolled back.
Availability:
Available to Jive admins only
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
securityGroupID | String | true | ID of the security group to which administrators should be added |
Takes:
Return Status:
HTTP Status Code | Description |
---|---|
201 (Created) | Request was successful |
400 (Bad Request) | if any of the input fields are malformed |
409 (Conflict) | if a person is added as both an administrator and a regular member // TODO - verify |
403 (Forbidden) | if the requesting user is not authorized to add administrators to a security group |
404 (Not Found) | if the specified security group, or one of the specified users, is not found |
Create Members
POST /securityGroups/{securityGroupID}/members
Add the specified people as regular members of the specified security group. If any error occurs while adding a particular user, all adds will be rolled back.
Availability:
Available to Jive admins only
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
securityGroupID | String | true | ID of the security group to which regular members should be added |
Takes:
Return Status:
HTTP Status Code | Description |
---|---|
201 (Created) | Request was successful |
400 (Bad Request) | An input field is missing or malformed |
409 (Conflict) | A person is added as both an administrator and a regular member |
403 (Forbidden) | The requesting user is not authorized to add regular members to a security group |
404 (Not Found) | The specified security group, or one of the specified users, is not found |
Create Security Group
POST /securityGroups
Create and return a security group based on the specified security group entity. Upon success, return a security group entity representing the new security group with all available fields.
The minimum information needed to create a new security group is as follows:
{ "name" : "{name}" }
Availability:
Available to Jive admins only
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | The fields to include in the returned entity |
Takes:
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
201 (Created) | Request was successful |
400 (Bad Request) | if any of the input fields are malformed |
409 (Conflict) | if the requested group would violate the uniqueness constraint on security group names |
403 (Forbidden) | if the requesting user is not authorized to create security groups |
Destroy Administrator
DELETE /securityGroups/{securityGroupID}/administrators/{personID}
Remove the specified person as an administrator of the specified security group.
Availability:
Available to Jive admins only
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
securityGroupID | String | true | ID of the security group for which to remove an administrator |
personID | String | true | ID of the person to be removed as an administrator |
Return Status:
HTTP Status Code | Description |
---|---|
204 (No Content) | Request was successful |
400 (Bad Request) | if any of the input fields are malformed |
409 (Conflict) | if the specified person is not currently an administrator of the specified security group |
403 (Forbidden) | if the requesting user is not authorized to remove administrators |
404 (Not Found) | if the specified security group or person is not found |
Destroy Member
DELETE /securityGroups/{securityGroupID}/members/{personID}
Remove the specified person as a regular member of the specified security group.
Availability:
Available to Jive admins only
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
securityGroupID | String | true | ID of the security group for which to remove a regular member |
personID | String | true | ID of the person to be removed as a regular member |
Return Status:
HTTP Status Code | Description |
---|---|
204 (No Content) | Request was successful |
400 (Bad Request) | An input field is missing or malformed |
409 (Conflict) | The specified person is not currently a regular member of the specified security group |
403 (Forbidden) | The requesting user is not authorized to remove regular members |
404 (Not Found) | The specified security group or person is not found |
Destroy Security Group
DELETE /securityGroups/{securityGroupID}
Delete the specified security group.
Availability:
Available to Jive admins only
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
securityGroupID | String | true | ID of the security group to be deleted |
Return Status:
HTTP Status Code | Description |
---|---|
204 (No Content) | Request was successful |
400 (Bad Request) | if any of the input fields are malformed |
403 (Forbidden) | if the requesting user is not authorized to delete security groups |
404 (Not Found) | if the specified security group does not exist |
Get Administrator
GET /securityGroups/{securityGroupID}/administrators/{personID}
Return nothing if the specified person is an administrator of the specified security group, else throw NotFoundException.
Availability:
Available to Jive admins only
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
securityGroupID | String | true | ID of the security group to be checked |
personID | String | true | ID of the person to be checked |
Return Status:
HTTP Status Code | Description |
---|---|
204 (No Content) | Request was successful |
400 (Bad Request) | An input field is missing or malformed |
403 (Forbidden) | The requesting user is not authorized to retrieve this information |
404 (Not Found) | The specified person is not an administrator of the specified security group |
Get Administrators
GET /securityGroups/{securityGroupID}/administrators
Return the specified fields in a paginated list of administrators of the specified security group.
Availability:
Available to Jive admins only
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
securityGroupID | String | true | ID of the security group for which administrators are to be returned |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
startIndex | Integer | false | Zero-relative index of the first matching administrator to be returned (default is 0) |
count | Integer | false | Maximum number of administrators to be returned (default is 25) |
fields | String | false | Fields to be returned (default is @summary) |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | if any of the input fields are malformed |
403 (Forbidden) | if the requesting user is not authorized to retrieve security groups information |
404 (Not Found) | if the specified security group does not exist |
Get Member
GET /securityGroups/{securityGroupID}/members/{personID}
Return nothing if the specified person is a regular member of the specified security group, else throw NotFoundException.
Availability:
Available to Jive admins only
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
securityGroupID | String | true | ID of the security group to be checked |
personID | String | true | ID of the person to be checked |
Return Status:
HTTP Status Code | Description |
---|---|
204 (No Content) | Request was successful |
400 (Bad Request) | An input field is missing or malformed |
403 (Forbidden) | The requesting user is not authorized to retrieve this information |
404 (Not Found) | The specified person is not a regular member of the specified security group |
Get Members
GET /securityGroups/{securityGroupID}/members
Return the specified fields in a paginated list of regular members of the specified security group.
Availability:
Available to Jive admins only
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
securityGroupID | String | true | ID of the security group for which regular members are to be returned |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
startIndex | Integer | false | Zero-relative index of the first matching regular member to be returned (default is 0) |
count | Integer | false | Maximum number of regular members to be returned (default is 25) |
fields | String | false | Fields to be returned (default is @summary ) |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | An input field is missing or malformed |
403 (Forbidden) | The requesting user is not authorized to retrieve security groups information |
404 (Not Found) | The specified security group does not exist |
Get Security Group
GET /securityGroups/{securityGroupID}
Return the specified fields in an entity for the specified security group.
Availability:
Available to Jive admins only
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
securityGroupID | String | true | ID of the security group to be returned |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to be returned (default value is @standard ) |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | Any of the input fields are malformed |
403 (Forbidden) | The requesting user is not authorized to retrieve security groups |
404 (Not Found) | The specified security group does not exist |
Get Security Group By Name
GET /securityGroups/name/{name}
Return a SecurityGroup whose name matches the specified name.
Availability:
Available to Jive admins only
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
name | String | true | name of the security group to be returned |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to be returned for each security group (default value is @standard ) |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
404 (Not Found) | if the name does not match a valid security group |
403 (Forbidden) | The requesting user is not authorized to retrieve security groups |
Since: 3.1
Get Security Groups
GET /securityGroups
Return the specified fields in a paginated list of security groups that match the specified selection criteria (or all security groups if no criteria are specified).
Availability:
Available to Jive admins only
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
startIndex | Integer | false | Zero-relative index of the first matching security group to be returned (default value is 0) |
count | Integer | false | Maximum number of security groups to be returned (default value is 25) |
fields | String | false | Fields to be returned for each security group (default value is @standard ) |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | Any of the input fields are malformed |
403 (Forbidden) | The requesting user is not authorized to retrieve security groups |
Update Security Group
PUT /securityGroups/{securityGroupID}
Update an existing security group based on the specified security group entity. Upon success, return a security group entity representing the updated security group with all available fields.
Availability:
Available to Jive admins only
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
securityGroupID | String | true | ID of the security group to be updated |
Takes:
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | if any of the input fields are malformed |
409 (Conflict) | if the requested group would violate the uniqueness constraint on security group names |
403 (Forbidden) | if the requesting user is not authorized to update security groups |
404 (Not Found) | if the requested security group does not exist |