Skip to content
Connect an agent

Organisations

Read the organisation's sign-in security

Whether every member must have two-step sign-in on, since when, and how many members have it.

GET/orgs/{org}/security

TL;DR

QuestionAnswer
What does it do?Read the organisation's sign-in security.
What does it take?org in the path.
What does it return?Status 200 with a body of type OrgSecurity.
What can go wrong?401 not signed in; 403 the organisation requires two-step sign-in and this account does not have it on (orgs.two_factor_required); 404 no such organisation, or the caller is not a member of it; 429 too many requests. Every failure uses the one error envelope.

What it does

Whether every member must have two-step sign-in on, since when, and how many members have it. The owner and the admins also get the members without it.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The organisation's security.OrgSecurity
401Not signed in.ErrorResponse
403The organisation requires two-step sign-in and this account does not have it on (orgs.two_factor_required).ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse

Response body

A 200 answer has the type OrgSecurity.

FieldTypeRequiredDescription
requireTwoFactorbooleanyesWhether every member must have two-step sign-in on to use the organisation.
sinceinteger | nullyesWhen it was turned on, in milliseconds since the epoch, or null.
canManagebooleanyesWhether the caller may change it: the owner and the admins.
membersobjectyes
members.totalintegeryes
members.withTwoFactorintegeryes
withoutobject[]yesThe members without two-step sign-in, for the owner and the admins; empty for anyone else. At most 200.
without[].userIdstringyes
without[].emailstringyes
without[].namestring | nullyes
without[].rolestringyes
without[].remindedAtinteger | nullyes

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools