nsc auth trust-relationships update modifies an existing trust relationship. You identify the relationship with its --id and provide only the flags you want to change. Fields whose flags are not set keep their current values.
Usage
Output
Examples
Change the subject match pattern:Required Flags
—id string
The unique identifier of the trust relationship to update. You can find this ID by runningnsc auth trust-relationships list or from the Trust Relationships settings page in the dashboard.
Optional Flags
You must provide at least one of the following flags. Only the fields you set are changed; everything else is left as-is.—issuer string
The token issuer URL that identifies the external identity provider. Seeadd for the list of supported issuers.
—subject-match string
Subject match pattern that defines which subjects from the issuer are trusted. Supports wildcards (*). See add for pattern examples.
—audience string
Expected audience (aud) value for the trusted tokens.
—grant stringArray (can be repeated)
Replaces all existing grants for the relationship with the permissions you provide. Each grant is a JSON object:—default_token_duration string
Default validity duration for tokens issued via this relationship (e.g.3600s).
Important Notes
- Partial updates: Only the flags you pass are changed. Unset fields retain their current values.
- Grants are replaced: Passing
--grantoverwrites the existing grants rather than appending to them. - Immediate effect: Updates take effect immediately for new authentications; existing sessions remain valid until they expire.
Related Topics
- nsc auth trust-relationships - Main command overview
- nsc auth trust-relationships add - Add new relationships
- nsc auth trust-relationships list - List existing relationships
- nsc auth trust-relationships remove - Remove relationships
- Permissions - Full list of resource types and actions