Set Trust Center access
Changed onSets which resources a user or organization, identified by email address, can access across your Trust Centers. The resources resolved from the request are granted, and any currently-accessible resources not among them are revoked, so their access ends up matching the request. Access is reconciled for one scope only: if the user has both organization-level and personal access, this updates the organization-level access.
Use mode to choose the set:
all: every resource published to any of your Trust Centers.
trust_centers: every resource on the Trust Centers named by trust_center_uuids.
specific: exactly the documents and questionnaires listed. Empty lists revoke all of the user's or organization's current access, and a document or questionnaire that isn't published on any of your Trust Centers is rejected rather than silently ignored.
The all and trust_centers modes resolve resources at the time of the call. Resources added to a Trust Center later aren't granted automatically; call this endpoint again to include them. For those modes, duration_days or custom_end_date sets the expiry on every granted resource.
If the email does not yet belong to a user, they are invited with the requested access applied when they accept. If the email has access through multiple organizations, provide org_name and/or org_primary_hostname to disambiguate. Those filters can also name an organization the user belongs to but doesn't yet have access through, in which case access is created there.
Required API key permissions: TrustExchange and ReadWrite (select when creating API key in Account Settings)
Request
- Base URLhttps://cyber-risk.upguard.com/api/public
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Email address of the user or organization representative whose access should be set.
Organization name to disambiguate when the user has access through multiple organizations, or to target one the user belongs to but has no access through yet.
Organization primary hostname to disambiguate when the user has access through multiple organizations, or to target one the user belongs to but has no access through yet.
Request body
Example request
{
"mode": "specific"
}Response
No Content
Changes
- info
endpoint added
- info