Gamma API

Get the security report

GET
/api/organizations/{slug}/security

The organization's two-factor and SSO policies, the SSO domain of the caller's own sign-in, and each member's sign-in, two-factor and password facts.

Who may call it: An owner, security admin or admin of the organization. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Host- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

slug*string

The organization's slug, as in its URL.

Response Body

OK.

application/json
  1. response

The organization's security policy and how each member measures up to it.

requireTwoFactor*boolean

Members must have two-factor authentication on to reach the organization and its projects.

requireSsoDomains*array<string>

The email domains whose members must sign in through their company's SSO to reach the organization and its projects; empty for none.

ssoDomain*|

The domain of the caller's own SSO sign-in, which turning the SSO policy on requires; null for any other sign-in.

members*array<>
Example Request
curl -X GET 'http://localhost:3000/api/organizations/string/security'
Example Response
{  "requireTwoFactor": true,  "requireSsoDomains": [    "string"  ],  "ssoDomain": "string",  "members": [    {      "memberId": "string",      "userId": "string",      "name": "string",      "email": "string",      "role": "string",      "lastLoginAt": "2019-08-24T14:15:22Z",      "twoFactorEnabled": true,      "passwordChangedAt": "2019-08-24T14:15:22Z",      "emailManaged": true    }  ]}