Get an automation member's permissions

This returns the permissions of an automation member. Members may have the following permissions:

  • Read
  • Write
  • Copy
  • Execute
  • Admin

Permissions are granted at the automation-level. You may, for instance, have admin permission in one automation, execute permission in another, and read-only permission in a third.

Request

https://api.sbgenomics.com/v2/automation/automations/{automation-id}/members/{username}
https://eu-api.sbgenomics.com/v2/automation/automations/{automation-id}/members/{username}

Example request

GET /v2/automation/automations/40a284d9-c0da-441c-8799-3de8d85bbd8d/members/rfranklin 
HTTP/1.1 
Host: api.sbgenomics.com 
X-SBG-Auth-Token: 399a7a4df28b40bba1dc4e2cf6e59a6c
curl -s -H "X-SBG-Auth-Token: 399a7a4df28b40bba1dc4e2cf6e59a6c" -H "content-type: application/json" -X GET "https://api.sbgenomics.com/v2/automation/automations/40a284d9-c0da-441c-8799-3de8d85bbd8d/members/rfranklin"
from sevenbridges import Api

api = Api(url='https://api.sbgenomics.com/v2',
          token='3259c50e1ac5426ea8f1273259740f74',
          advance_access=True)

automation = api.automations.get(id='a284d9-c0da-441c-8799-3de8d85bbd8d')

# send GET request to SB API
member = automation.get_member(username='rfranklin')

print(member.permissions)

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Content-Type
required

application/json

X-SBG-Advance-Access
required

advance

Path parameters

Name

Description

automation_id
required

The ID of the automation the member belongs to.

username
required

The username of the user you are querying.

Response

See a list of Seven Bridges Platform-specific response codes that may be contained in the body of the response.

Example response body

{
    "href": "https://api.sbgenomics.com/v2/automation/automations/40a284d9-c0da-441c-8799-3de8d85bbd8d/members/rfranklin",
    "username": "rfranklin",
    "permissions": {
        "write": true,
        "read": true,
        "copy": true,
        "execute": true,
        "admin": true
    }
}