client.agentVault().delegations.set() sets which users a machine identity can create sessions on behalf of. The new delegation replaces any delegation that the machine identity has. The client must log in as a user or machine identity with the Admin role in the Agent Vault project.With AgentVaultDelegationScope.Selected, pass at least one user or group. With AgentVaultDelegationScope.AllMembers, pass no users or groups. To stop the machine identity from acting on behalf of anyone, delete the delegation.Each user and group must be a member of the Agent Vault project. If a user is in the Agent Vault project only through a group, pass the group instead.
Parameters
string
required
The ID of the machine identity, which must be a member of the Agent Vault project.
Either AgentVaultDelegationScope.Selected ("selected") for only the users and groups that you pass, or AgentVaultDelegationScope.AllMembers ("all-members") for every member of the Agent Vault project, admins included.
string[]
With AgentVaultDelegationScope.Selected, the IDs of the users that the machine identity can act on behalf of (up to 100).
string[]
With AgentVaultDelegationScope.Selected, the IDs of the groups whose members the machine identity can act on behalf of (up to 100).
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Infisical","colors":{"primary":"#26272b","light":"#dbf530","dark":"#A1B659"},"logo":{"light":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/logo/light.svg","dark":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/logo/dark.svg","href":"/"},"favicon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/favicon.ico","api":{"openapi":"https://app.infisical.com/api/docs/json","mdx":{"server":["https://app.infisical.com"]}},"appearance":{"default":"light"},"background":{"color":{"light":"#ffffff","dark":"#08090b"}},"navbar":{"links":[{"href":"https://app.infisical.com/login","label":"Log In"}],"primary":{"type":"button","label":"Start for Free","href":"https://app.infisical.com/signup"}},"footer":{"socials":{"x":"https://www.twitter.com/infisical","linkedin":"https://www.linkedin.com/company/infisical","github":"https://github.com/Infisical/infisical-cli","website":"https://community.infisical.com"},"links":[{"header":"PRODUCT","items":[{"label":"Secrets Management","href":"https://infisical.com/platform/secrets-management"},{"label":"Certificate Management","href":"https://infisical.com/platform/certificate-management"},{"label":"Privileged Access Management (PAM)","href":"https://infisical.com/platform/pam"},{"label":"Agent Vault","href":"https://infisical.com/platform/agent-vault"},{"label":"Key Management Service (KMS)","href":"https://infisical.com/docs/documentation/platform/kms/overview"},{"label":"Secret Scanning","href":"https://infisical.com/radar"},{"label":"Share Secrets","href":"https://app.infisical.com/share-secret"},{"label":"Pricing","href":"https://infisical.com/pricing"},{"label":"Security","href":"https://infisical.com/docs/internals/security"},{"label":"Blog","href":"https://infisical.com/blog"},{"label":"Infisical vs Vault","href":"https://infisical.com/infisical-vs-hashicorp-vault"},{"label":"Community","href":"https://community.infisical.com/"}]},{"header":"USE CASES","items":[{"label":"Infisical Agent","href":"https://infisical.com/docs/documentation/getting-started/introduction"},{"label":"Infisical Proxy","href":"https://infisical.com/docs/integrations/platforms/infisical-proxy"},{"label":"Kubernetes","href":"https://infisical.com/docs/integrations/platforms/kubernetes"},{"label":"Dynamic Secrets","href":"https://infisical.com/docs/documentation/platform/dynamic-secrets/overview"},{"label":"Terraform","href":"https://registry.terraform.io/providers/Infisical/infisical/latest/docs"},{"label":"Ansible","href":"https://infisical.com/docs/integrations/platforms/ansible"},{"label":"Jenkins","href":"https://infisical.com/docs/integrations/cicd/jenkins"},{"label":"Docker","href":"https://infisical.com/docs/integrations/platforms/docker"},{"label":"AWS ECS","href":"https://infisical.com/docs/integrations/platforms/ecs-with-agent"},{"label":"GitLab","href":"https://infisical.com/docs/integrations/cicd/gitlab"},{"label":"GitHub","href":"https://infisical.com/docs/integrations/cicd/githubactions"},{"label":"SDK","href":"https://infisical.com/docs/sdks/overview"}]},{"header":"DEVELOPERS","items":[{"label":"Changelog","href":"https://github.com/Infisical/infisical/releases"},{"label":"Status","href":"https://status.infisical.com/"},{"label":"Feedback \u0026 Requests","href":"https://github.com/Infisical/infisical/issues"},{"label":"Trust of Center","href":"https://app.vanta.com/infisical.com/trust/hoop8cr78cuarxo9sztvs"},{"label":"Open Source Friends","href":"https://infisical.com/infisical-friends"},{"label":"How to contribute","href":"https://www.infisical.com/infisical-heroes"}]},{"header":"OTHERS","items":[{"label":"Customers","href":"https://infisical.com/customers/traba"},{"label":"Company Handbook","href":"https://infisical.com/wiki/handbook/overview"},{"label":"Careers","href":"https://infisical.com/careers"},{"label":"Terms of Service","href":"https://infisical.com/terms"},{"label":"Privacy Policy","href":"https://infisical.com/privacy"},{"label":"Subprocessors","href":"https://infisical.com/subprocessors"},{"label":"SLA","href":"https://infisical.com/sla"},{"label":"Support Email","href":"mailto:[email protected]"},{"label":"Sales","href":"mailto:[email protected]"},{"label":"Support","href":"https://community.infisical.com"}]}]},"fonts":{"heading":{"family":"Alliance","weight":400,"source":"https://infisical.com/docs/fonts/AllianceNo2-Regular.woff2","format":"woff2"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"dark","latex":false},"integrations":{"posthog":{"apiKey":"phc_Q0xfB3LeOqo7ySk4DE6zLNwDzHFesKcmigknCy4fTdV","apiHost":"https://p.infisical.com"},"koala":{"publicApiKey":"pk_b50d7184e0e39ddd5cdb43cf6abeadd9b97d"},"gtm":{"tagId":"GTM-WL5C7MWT"}},"contextual":{"options":["assistant","copy","view","chatgpt","claude","mcp"],"display":"header"},"thumbnails":{"preset":"classic","appearance":"light","background":"https://infisical.com/docs/images/docs-preview-yellow.png","fonts":{"family":"Alliance","source":"fonts/AllianceNo2-Regular.woff","format":"woff"},"eyebrow":{"source":"group","style":"plain","color":"#000000"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"infisical","hasAudioNarration":false,"actualSubdomain":"infisical","customDomains":["infisical.com"],"gitSource":{"type":"github","owner":"infisical","repo":"infisical","deployBranch":"main","contentDirectory":"docs","mountPath":"","label":"","_id":"6b109e439ffae5051c3f75ce"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b14cf885b2cfe21fb663094","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Reference","count":2262},{"language":"default","tag":"API","count":1983},{"language":"default","tag":"Secrets Management","count":987},{"language":"default","tag":"App connections","count":716},{"language":"default","tag":"Shared","count":622},{"language":"default","tag":"Secret syncs","count":456},{"language":"default","tag":"Products","count":442},{"language":"default","tag":"Certificate Management","count":343},{"language":"default","tag":"Platform","count":261},{"language":"default","tag":"SDKs","count":246}]},"assistantConfig":{"enableAskAiButton":true,"enableAskAiSearchBar":false},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"selectively-prewarm","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instinct-self-updating-docs","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/docs/_mintlify/custom/infisical/a3d0c08133ee2cd5/style.css"}]}
{"page":{"pagePath":"sdks/languages/node/agent-vault/set-delegation","slug":"/sdks/languages/node/agent-vault/set-delegation","pageMetadata":{"title":"Set a delegation","description":"Set who a machine identity can create Agent Vault sessions for with the Node.js SDK.","href":"/sdks/languages/node/agent-vault/set-delegation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Set who a machine identity can create Agent Vault sessions for with the Node.js SDK.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Expandable,Heading,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`client.agentVault().delegations.set()`}),` sets which users a machine identity can create sessions on behalf of. The new delegation replaces any delegation that the machine identity has. The client must log in as a user or machine identity with the `,_jsx(_components.strong,{children:`Admin`}),` role in the `,_jsx(_components.a,{href:`/documentation/platform/agent-vault/access-control#product-membership`,children:`Agent Vault project`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`AgentVaultDelegationScope.Selected`}),`, pass at least one user or group. With `,_jsx(_components.code,{children:`AgentVaultDelegationScope.AllMembers`}),`, pass no users or groups. To stop the machine identity from acting on behalf of anyone, `,_jsx(_components.a,{href:`/sdks/languages/node/agent-vault/delete-delegation`,children:`delete the delegation`}),`.`]}),`\n`,_jsx(_components.p,{children:`Each user and group must be a member of the Agent Vault project. If a user is in the Agent Vault project only through a group, pass the group instead.`}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`machineIdentityId`,type:`string`,required:true,id:`param-machine-identity-id`,children:_jsx(_components.p,{children:`The ID of the machine identity, which must be a member of the Agent Vault project.`})}),`\n`,_jsx(ResponseField,{name:`options`,type:`object`,required:true,id:`param-options`,children:_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsx(ResponseField,{name:`projectId`,type:`string`,required:true,id:`param-project-id`,children:_jsxs(_components.p,{children:[`The ID of the `,_jsx(_components.a,{href:`/documentation/platform/agent-vault/projects#find-the-project-id`,children:`Agent Vault project`}),` to set the delegation in.`]})}),_jsx(ResponseField,{name:`scope`,type:`AgentVaultDelegationScope`,required:true,id:`param-scope`,children:_jsxs(_components.p,{children:[`Either `,_jsx(_components.code,{children:`AgentVaultDelegationScope.Selected`}),` (`,_jsx(_components.code,{children:`\"selected\"`}),`) for only the users and groups that you pass, or `,_jsx(_components.code,{children:`AgentVaultDelegationScope.AllMembers`}),` (`,_jsx(_components.code,{children:`\"all-members\"`}),`) for every member of the Agent Vault project, admins included.`]})}),_jsx(ResponseField,{name:`userIds`,type:`string[]`,id:`param-user-ids`,children:_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`AgentVaultDelegationScope.Selected`}),`, the IDs of the users that the machine identity can act on behalf of (up to 100).`]})}),_jsx(ResponseField,{name:`groupIds`,type:`string[]`,id:`param-group-ids`,children:_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`AgentVaultDelegationScope.Selected`}),`, the IDs of the groups whose members the machine identity can act on behalf of (up to 100).`]})})]})}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsx(ResponseField,{name:`delegation`,type:`AgentVaultDelegationDetail`,id:`param-delegation`,children:_jsxs(_components.p,{children:[`The delegation, with `,_jsx(_components.code,{children:`missingAccessBundles`}),`.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Set a delegation","description":"Set who a machine identity can create Agent Vault sessions for with the Node.js SDK.","href":"/sdks/languages/node/agent-vault/set-delegation"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`client.agentVault().delegations.set()`}),` sets which users a machine identity can create sessions on behalf of. The new delegation replaces any delegation that the machine identity has. The client must log in as a user or machine identity with the `,_jsx(_components.strong,{children:`Admin`}),` role in the `,_jsx(_components.a,{href:`/documentation/platform/agent-vault/access-control#product-membership`,children:`Agent Vault project`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`AgentVaultDelegationScope.Selected`}),`, pass at least one user or group. With `,_jsx(_components.code,{children:`AgentVaultDelegationScope.AllMembers`}),`, pass no users or groups. To stop the machine identity from acting on behalf of anyone, `,_jsx(_components.a,{href:`/sdks/languages/node/agent-vault/delete-delegation`,children:`delete the delegation`}),`.`]}),`\n`,_jsx(_components.p,{children:`Each user and group must be a member of the Agent Vault project. If a user is in the Agent Vault project only through a group, pass the group instead.`}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`machineIdentityId`,type:`string`,required:true,id:`param-machine-identity-id`,children:_jsx(_components.p,{children:`The ID of the machine identity, which must be a member of the Agent Vault project.`})}),`\n`,_jsx(ResponseField,{name:`options`,type:`object`,required:true,id:`param-options`,children:_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsx(ResponseField,{name:`projectId`,type:`string`,required:true,id:`param-project-id`,children:_jsxs(_components.p,{children:[`The ID of the `,_jsx(_components.a,{href:`/documentation/platform/agent-vault/projects#find-the-project-id`,children:`Agent Vault project`}),` to set the delegation in.`]})}),_jsx(ResponseField,{name:`scope`,type:`AgentVaultDelegationScope`,required:true,id:`param-scope`,children:_jsxs(_components.p,{children:[`Either `,_jsx(_components.code,{children:`AgentVaultDelegationScope.Selected`}),` (`,_jsx(_components.code,{children:`\"selected\"`}),`) for only the users and groups that you pass, or `,_jsx(_components.code,{children:`AgentVaultDelegationScope.AllMembers`}),` (`,_jsx(_components.code,{children:`\"all-members\"`}),`) for every member of the Agent Vault project, admins included.`]})}),_jsx(ResponseField,{name:`userIds`,type:`string[]`,id:`param-user-ids`,children:_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`AgentVaultDelegationScope.Selected`}),`, the IDs of the users that the machine identity can act on behalf of (up to 100).`]})}),_jsx(ResponseField,{name:`groupIds`,type:`string[]`,id:`param-group-ids`,children:_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`AgentVaultDelegationScope.Selected`}),`, the IDs of the groups whose members the machine identity can act on behalf of (up to 100).`]})})]})}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsx(ResponseField,{name:`delegation`,type:`AgentVaultDelegationDetail`,id:`param-delegation`,children:_jsxs(_components.p,{children:[`The delegation, with `,_jsx(_components.code,{children:`missingAccessBundles`}),`.`]})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Selected users and groups`,numberOfLines:`8`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`AgentVaultDelegationScope`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"@infisical/sdk\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:` delegation`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`agentVault`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`delegations`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cmachine-identity-id>\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` projectId:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cproject-id>\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` scope:`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` AgentVaultDelegationScope`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`Selected`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` userIds:`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cuser-id>\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:`// Optional`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` groupIds:`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cgroup-id>\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:`// Optional`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`All members`,numberOfLines:`6`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`AgentVaultDelegationScope`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"@infisical/sdk\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:` delegation`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`agentVault`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`delegations`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cmachine-identity-id>\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` projectId:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cproject-id>\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` scope:`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` AgentVaultDelegationScope`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`AllMembers`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`29`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`29`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"machineIdentity\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"deploy-bot\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"scope\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"selected\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"users\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"username\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"[email protected]\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"[email protected]\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"firstName\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Jo\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"lastName\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Smith\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"addedAt\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"2026-12-02T13:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"missingAccessBundles\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"groups\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"platform-team\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"addedAt\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"2026-12-02T13:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"missingAccessBundles\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"missingAccessBundles\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"2026-12-02T13:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"updatedAt\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"2026-12-02T13:00:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Set a delegation","description":"Set who a machine identity can create Agent Vault sessions for with the Node.js SDK.","href":"/sdks/languages/node/agent-vault/set-delegation"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Parameters","slug":"parameters","depth":2,"children":[]},{"title":"Returns","slug":"returns","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Selected users and groups","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"typescript\">\u003ccode language=\"typescript\" numberOfLines=\"8\">\u003cspan class=\"line\">\u003cspan style=\"color:#C586C0;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">AgentVaultDelegationScope\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#C586C0;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"@infisical/sdk\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#4FC1FF;--shiki-dark:#4FC1FF\"> delegation\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> = \u003c/span>\u003cspan style=\"color:#C586C0;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">agentVault\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">().\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">delegations\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">set\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\u0026#x3C;machine-identity-id>\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> projectId:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"\u0026#x3C;project-id>\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> scope:\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> AgentVaultDelegationScope\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">Selected\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> userIds:\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\u0026#x3C;user-id>\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">], \u003c/span>\u003cspan style=\"color:#6A9955;--shiki-dark:#6A9955\">// Optional\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> groupIds:\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\u0026#x3C;group-id>\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">] \u003c/span>\u003cspan style=\"color:#6A9955;--shiki-dark:#6A9955\">// Optional\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"All members","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"typescript\">\u003ccode language=\"typescript\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#C586C0;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">AgentVaultDelegationScope\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#C586C0;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"@infisical/sdk\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#4FC1FF;--shiki-dark:#4FC1FF\"> delegation\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> = \u003c/span>\u003cspan style=\"color:#C586C0;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">agentVault\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">().\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">delegations\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">set\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\u0026#x3C;machine-identity-id>\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> projectId:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"\u0026#x3C;project-id>\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> scope:\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> AgentVaultDelegationScope\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">AllMembers\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"29\">\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"machineIdentity\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"deploy-bot\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"scope\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"selected\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"users\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"username\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"[email protected]\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"email\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"[email protected]\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"firstName\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Jo\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"lastName\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Smith\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"addedAt\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"2026-12-02T13:00:00.000Z\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"missingAccessBundles\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: []\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"groups\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"platform-team\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"addedAt\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"2026-12-02T13:00:00.000Z\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"missingAccessBundles\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: []\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"missingAccessBundles\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"createdAt\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"2026-12-02T13:00:00.000Z\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"updatedAt\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"2026-12-02T13:00:00.000Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/docs/_mintlify/custom/infisical/b13a5df316344f52/unify.js","/docs/_mintlify/custom/infisical/bc9046d1d11b5448/field-name-copy.js","/docs/_mintlify/custom/infisical/fdfdc80c034be768/cli-reference-nav.js"],"subdomain":"infisical","siteName":"Infisical","title":"Set a delegation - Infisical","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-03T23:42:31.430Z","originalFileLocation":"sdks/languages/node/agent-vault/set-delegation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Set who a machine identity can create Agent Vault sessions for with the Node.js SDK.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Infisical\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/x-icon\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/infisical/favicon.ico\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/infisical/favicon.ico\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/infisical/favicon.ico\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/infisical/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Set a delegation - Infisical\">\u003cmeta data-mint-head property=\"og:description\" content=\"Set who a machine identity can create Agent Vault sessions for with the Node.js SDK.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Infisical\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://infisical.com/docs/sdks/languages/node/agent-vault/set-delegation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://infisical.mintlify.site/docs/_mintlify/api/og/v2?division=Delegations\u0026amp;title=Set+a+delegation\u0026amp;description=Set+who+a+machine+identity+can+create+Agent+Vault+sessions+for+with+the+Node.js+SDK.\u0026amp;theme=b0e9e71d2b2f25bc38c03fbe\u0026amp;signature=7805499e4949714961cedce71ce243a54d636a0159b08b0a26555e57bd7bc98a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Set a delegation - Infisical\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Set who a machine identity can create Agent Vault sessions for with the Node.js SDK.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://infisical.mintlify.site/docs/_mintlify/api/og/v2?division=Delegations\u0026amp;title=Set+a+delegation\u0026amp;description=Set+who+a+machine+identity+can+create+Agent+Vault+sessions+for+with+the+Node.js+SDK.\u0026amp;theme=b0e9e71d2b2f25bc38c03fbe\u0026amp;signature=7805499e4949714961cedce71ce243a54d636a0159b08b0a26555e57bd7bc98a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/infisical/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Infisical\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#26272b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://infisical.com/docs/sdks/languages/node/agent-vault/set-delegation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/sdks/languages/node/agent-vault/set-delegation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://infisical.com/#organization\",\"name\":\"Infisical\",\"url\":\"https://infisical.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintlify.s3.us-west-1.amazonaws.com/infisical/logo/light.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://infisical.com/docs#website\",\"name\":\"Infisical\",\"url\":\"https://infisical.com/docs\",\"publisher\":{\"@id\":\"https://infisical.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://infisical.com/docs/sdks/languages/node/agent-vault/set-delegation#webpage\",\"url\":\"https://infisical.com/docs/sdks/languages/node/agent-vault/set-delegation\",\"name\":\"Set a delegation\",\"description\":\"Set who a machine identity can create Agent Vault sessions for with the Node.js SDK.\",\"dateModified\":\"2026-12-03T23:42:31.430Z\",\"isPartOf\":{\"@id\":\"https://infisical.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://infisical.com/docs/sdks/languages/node/agent-vault/set-delegation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://infisical.com/docs/sdks/languages/node/agent-vault/set-delegation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agent Vault\",\"item\":\"https://infisical.com/docs/sdks/languages/node/agent-vault/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Delegations\",\"item\":\"https://infisical.com/docs/sdks/languages/node/agent-vault/list-delegations\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Set a delegation\",\"item\":\"https://infisical.com/docs/sdks/languages/node/agent-vault/set-delegation\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://infisical.com/docs/sdks/languages/node/agent-vault/set-delegation#article\",\"headline\":\"Set a delegation\",\"name\":\"Set a delegation\",\"description\":\"Set who a machine identity can create Agent Vault sessions for with the Node.js SDK.\",\"url\":\"https://infisical.com/docs/sdks/languages/node/agent-vault/set-delegation\",\"mainEntityOfPage\":{\"@id\":\"https://infisical.com/docs/sdks/languages/node/agent-vault/set-delegation#webpage\"},\"dateModified\":\"2026-12-03T23:42:31.430Z\",\"publisher\":{\"@id\":\"https://infisical.com/#organization\"},\"isPartOf\":{\"@id\":\"https://infisical.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Infisical\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Infisical\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/sdks/languages/node/agent-vault/set-delegation.md","siteName":"Infisical","nav":{"global":null,"tabs":[{"tab":"Get started","pages":[{"title":"Get started","href":"/documentation/getting-started/overview"}]},{"tab":"Products","menu":[{"item":"Secrets Management","icon":"key","pages":[{"title":"Secrets Management","href":"/documentation/platform/secrets-mgmt/overview"}]},{"item":"Certificate Management","icon":"file-key","pages":[{"title":"Certificate Management","href":"/documentation/platform/pki/overview"}]},{"item":"Privileged Access Management (PAM)","icon":"users","pages":[{"title":"Privileged Access Management (PAM)","href":"/documentation/platform/pam/overview"}]},{"item":"Agent Vault","icon":"vault","pages":[{"title":"Agent Vault","href":"/documentation/platform/agent-vault/overview"}]},{"item":"Key Management Service (KMS)","icon":"lock","pages":[{"title":"Key Management Service (KMS)","href":"/documentation/platform/kms/overview"}]},{"item":"Secret Scanning","icon":"radar","pages":[{"title":"Secret Scanning","href":"/documentation/platform/secret-scanning/overview"}]}],"pages":[{"title":"Products","href":"/documentation/platform/secrets-mgmt/overview"}]},{"tab":"Platform","menu":[{"item":"Organizations","icon":"building","pages":[{"title":"Organizations","href":"/documentation/platform/organization"}]},{"item":"Identity and access","icon":"id-card","pages":[{"title":"Identity and access","href":"/documentation/platform/identities/overview"}]},{"item":"App connections","icon":"plug","pages":[{"title":"App connections","href":"/integrations/app-connections/overview"}]},{"item":"Networking","icon":"network","pages":[{"title":"Networking","href":"/documentation/platform/gateways/overview"}]},{"item":"Self-hosting","icon":"server","pages":[{"title":"Self-hosting","href":"/self-hosting/overview"}]},{"item":"Internals","icon":"workflow","pages":[{"title":"Internals","href":"/internals/overview"}]},{"item":"Contributing","icon":"git-pull-request","pages":[{"title":"Contributing","href":"/contributing/getting-started/overview"}]}],"pages":[{"title":"Platform","href":"/documentation/platform/organization"}]},{"tab":"Reference","icon":{"name":"code","library":"lucide"},"menu":[{"item":"CLI","icon":"terminal","pages":[{"title":"CLI","href":"/cli/overview"}]},{"item":"API","icon":"book-open","pages":[{"title":"API","href":"/api-reference/overview/introduction"}]},{"item":"SDKs","icon":"boxes","dropdowns":[{"dropdown":"Choose an SDK","icon":"boxes","pages":[{"title":"SDKs","sidebarTitle":"SDKs","icon":"boxes","href":"/sdks/overview"}]},{"dropdown":"Python","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/python.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Python SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/python"},{"title":"Client and authentication","href":"/sdks/languages/python/client"},{"title":"Errors and retries","href":"/sdks/languages/python/errors-and-retries"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/python/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/python/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/python/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/python/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/python/secrets/delete-secret"}]},{"group":"Folders","pages":[{"title":"List folders","href":"/sdks/languages/python/folders/list-folders"},{"title":"Get a folder","href":"/sdks/languages/python/folders/get-folder"},{"title":"Create a folder","href":"/sdks/languages/python/folders/create-folder"},{"title":"Update a folder","href":"/sdks/languages/python/folders/update-folder"},{"title":"Delete a folder","href":"/sdks/languages/python/folders/delete-folder"}]},{"group":"Dynamic secrets","pages":[{"title":"Lease credentials","href":"/sdks/languages/python/dynamic-secrets/create-lease"},{"title":"Get a lease","href":"/sdks/languages/python/dynamic-secrets/get-lease"},{"title":"Renew a lease","href":"/sdks/languages/python/dynamic-secrets/renew-lease"},{"title":"Revoke a lease","href":"/sdks/languages/python/dynamic-secrets/revoke-lease"},{"title":"Create a dynamic secret","href":"/sdks/languages/python/dynamic-secrets/create-dynamic-secret"},{"title":"Get a dynamic secret","href":"/sdks/languages/python/dynamic-secrets/get-dynamic-secret"},{"title":"Update a dynamic secret","href":"/sdks/languages/python/dynamic-secrets/update-dynamic-secret"},{"title":"Delete a dynamic secret","href":"/sdks/languages/python/dynamic-secrets/delete-dynamic-secret"}]},{"group":"KMS","pages":[{"title":"List keys","href":"/sdks/languages/python/kms/list-keys"},{"title":"Get a key","href":"/sdks/languages/python/kms/get-key"},{"title":"Get a key by name","href":"/sdks/languages/python/kms/get-key-by-name"},{"title":"Create a key","href":"/sdks/languages/python/kms/create-key"},{"title":"Update a key","href":"/sdks/languages/python/kms/update-key"},{"title":"Delete a key","href":"/sdks/languages/python/kms/delete-key"},{"title":"Encrypt data","href":"/sdks/languages/python/kms/encrypt"},{"title":"Decrypt data","href":"/sdks/languages/python/kms/decrypt"}]},{"group":"Agent Vault","pages":[{"title":"Agent Vault","sidebarTitle":"Overview","href":"/sdks/languages/python/agent-vault/overview"},{"group":"Sessions","pages":[{"title":"List sessions","href":"/sdks/languages/python/agent-vault/list-sessions"},{"title":"Get a session","href":"/sdks/languages/python/agent-vault/get-session"},{"title":"Create a session","href":"/sdks/languages/python/agent-vault/create-session"},{"title":"Update session label and metadata","sidebarTitle":"Update a session","href":"/sdks/languages/python/agent-vault/update-session"},{"title":"Revoke a session","href":"/sdks/languages/python/agent-vault/revoke-session"}]},{"group":"Proxies","pages":[{"title":"List proxies","href":"/sdks/languages/python/agent-vault/list-proxies"},{"title":"Create a proxy","href":"/sdks/languages/python/agent-vault/create-proxy"},{"title":"Update a proxy","href":"/sdks/languages/python/agent-vault/update-proxy"},{"title":"Delete a proxy","href":"/sdks/languages/python/agent-vault/delete-proxy"},{"title":"Rotate a proxy token","href":"/sdks/languages/python/agent-vault/rotate-proxy-token"},{"title":"Revoke a proxy","href":"/sdks/languages/python/agent-vault/revoke-proxy"}]},{"group":"Access bundles","pages":[{"title":"List access bundles","href":"/sdks/languages/python/agent-vault/list-access-bundles"},{"title":"Get an access bundle","href":"/sdks/languages/python/agent-vault/get-access-bundle"},{"title":"Create an access bundle","href":"/sdks/languages/python/agent-vault/create-access-bundle"},{"title":"Update an access bundle","href":"/sdks/languages/python/agent-vault/update-access-bundle"},{"title":"Delete an access bundle","href":"/sdks/languages/python/agent-vault/delete-access-bundle"},{"title":"List grantees","href":"/sdks/languages/python/agent-vault/list-grantees"},{"title":"List available grantees","href":"/sdks/languages/python/agent-vault/list-available-grantees"},{"title":"Grant access","href":"/sdks/languages/python/agent-vault/grant-access"},{"title":"Revoke access","href":"/sdks/languages/python/agent-vault/revoke-access"}]},{"group":"Delegations","pages":[{"title":"List delegations","href":"/sdks/languages/python/agent-vault/list-delegations"},{"title":"Get a delegation","href":"/sdks/languages/python/agent-vault/get-delegation"},{"title":"Set a delegation","href":"/sdks/languages/python/agent-vault/set-delegation"},{"title":"List available users and groups","href":"/sdks/languages/python/agent-vault/list-available-subjects"},{"title":"Add users and groups","href":"/sdks/languages/python/agent-vault/add-subjects"},{"title":"Remove users and groups","href":"/sdks/languages/python/agent-vault/remove-subjects"},{"title":"Delete a delegation","href":"/sdks/languages/python/agent-vault/delete-delegation"}]}]}]},{"dropdown":"Node.js","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/node.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Node.js SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/node"},{"title":"Client and authentication","href":"/sdks/languages/node/client"},{"title":"Errors and retries","href":"/sdks/languages/node/errors-and-retries"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/node/secrets/list-secrets"},{"title":"List secrets with imports","href":"/sdks/languages/node/secrets/list-secrets-with-imports"},{"title":"Get a secret","href":"/sdks/languages/node/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/node/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/node/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/node/secrets/delete-secret"}]},{"group":"Folders","pages":[{"title":"List folders","href":"/sdks/languages/node/folders/list-folders"},{"title":"Create a folder","href":"/sdks/languages/node/folders/create-folder"}]},{"group":"Projects","pages":[{"title":"Create a project","href":"/sdks/languages/node/projects/create-project"},{"title":"Invite users to a project","sidebarTitle":"Invite users","href":"/sdks/languages/node/projects/invite-members"},{"title":"Create an environment","href":"/sdks/languages/node/projects/create-environment"}]},{"group":"Dynamic secrets","pages":[{"title":"Lease credentials","href":"/sdks/languages/node/dynamic-secrets/create-lease"},{"title":"Renew a lease","href":"/sdks/languages/node/dynamic-secrets/renew-lease"},{"title":"Delete a lease","href":"/sdks/languages/node/dynamic-secrets/delete-lease"},{"title":"Create a dynamic secret","href":"/sdks/languages/node/dynamic-secrets/create-dynamic-secret"},{"title":"Delete a dynamic secret","href":"/sdks/languages/node/dynamic-secrets/delete-dynamic-secret"}]},{"group":"KMS","pages":[{"title":"Create a key","href":"/sdks/languages/node/kms/create-key"},{"title":"Get a key by name","href":"/sdks/languages/node/kms/get-key-by-name"},{"title":"Delete a key","href":"/sdks/languages/node/kms/delete-key"},{"title":"Encrypt data","href":"/sdks/languages/node/kms/encrypt"},{"title":"Decrypt data","href":"/sdks/languages/node/kms/decrypt"},{"title":"Sign data","href":"/sdks/languages/node/kms/sign"},{"title":"Verify a signature","href":"/sdks/languages/node/kms/verify"},{"title":"List a key's signing algorithms","sidebarTitle":"List signing algorithms","href":"/sdks/languages/node/kms/list-signing-algorithms"},{"title":"Get a key's public key","sidebarTitle":"Get a public key","href":"/sdks/languages/node/kms/get-public-key"}]},{"group":"Agent Vault","pages":[{"title":"Agent Vault","sidebarTitle":"Overview","href":"/sdks/languages/node/agent-vault/overview"},{"group":"Sessions","pages":[{"title":"List sessions","href":"/sdks/languages/node/agent-vault/list-sessions"},{"title":"Get a session","href":"/sdks/languages/node/agent-vault/get-session"},{"title":"Create a session","href":"/sdks/languages/node/agent-vault/create-session"},{"title":"Update session label and metadata","sidebarTitle":"Update a session","href":"/sdks/languages/node/agent-vault/update-session"},{"title":"Revoke a session","href":"/sdks/languages/node/agent-vault/revoke-session"}]},{"group":"Proxies","pages":[{"title":"List proxies","href":"/sdks/languages/node/agent-vault/list-proxies"},{"title":"Create a proxy","href":"/sdks/languages/node/agent-vault/create-proxy"},{"title":"Update a proxy","href":"/sdks/languages/node/agent-vault/update-proxy"},{"title":"Delete a proxy","href":"/sdks/languages/node/agent-vault/delete-proxy"},{"title":"Rotate a proxy token","href":"/sdks/languages/node/agent-vault/rotate-proxy-token"},{"title":"Revoke a proxy","href":"/sdks/languages/node/agent-vault/revoke-proxy"}]},{"group":"Access bundles","pages":[{"title":"List access bundles","href":"/sdks/languages/node/agent-vault/list-access-bundles"},{"title":"Get an access bundle","href":"/sdks/languages/node/agent-vault/get-access-bundle"},{"title":"Create an access bundle","href":"/sdks/languages/node/agent-vault/create-access-bundle"},{"title":"Update an access bundle","href":"/sdks/languages/node/agent-vault/update-access-bundle"},{"title":"Delete an access bundle","href":"/sdks/languages/node/agent-vault/delete-access-bundle"},{"title":"List grantees","href":"/sdks/languages/node/agent-vault/list-grantees"},{"title":"List available grantees","href":"/sdks/languages/node/agent-vault/list-available-grantees"},{"title":"Grant access","href":"/sdks/languages/node/agent-vault/grant-access"},{"title":"Revoke access","href":"/sdks/languages/node/agent-vault/revoke-access"}]},{"group":"Delegations","pages":[{"title":"List delegations","href":"/sdks/languages/node/agent-vault/list-delegations"},{"title":"Get a delegation","description":"Fetch a machine identity's Agent Vault delegation with the Node.js SDK.","href":"/sdks/languages/node/agent-vault/get-delegation"},{"title":"Set a delegation","href":"/sdks/languages/node/agent-vault/set-delegation"},{"title":"List available users and groups","description":"List who you can add to an Agent Vault delegation with the Node.js SDK.","href":"/sdks/languages/node/agent-vault/list-available-subjects"},{"title":"Add users and groups","href":"/sdks/languages/node/agent-vault/add-subjects"},{"title":"Remove users and groups","href":"/sdks/languages/node/agent-vault/remove-subjects"},{"title":"Delete a delegation","href":"/sdks/languages/node/agent-vault/delete-delegation"}]}]}]},{"dropdown":"Go","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/go.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Go SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/go"},{"title":"Client and authentication","href":"/sdks/languages/go/client"},{"title":"Errors and retries","href":"/sdks/languages/go/errors-and-retries"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/go/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/go/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/go/secrets/create-secret"},{"title":"Create several secrets","href":"/sdks/languages/go/secrets/create-secrets"},{"title":"Update a secret","href":"/sdks/languages/go/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/go/secrets/delete-secret"}]},{"group":"Folders","pages":[{"title":"List folders","href":"/sdks/languages/go/folders/list-folders"},{"title":"Create a folder","href":"/sdks/languages/go/folders/create-folder"},{"title":"Update a folder","href":"/sdks/languages/go/folders/update-folder"},{"title":"Delete a folder","href":"/sdks/languages/go/folders/delete-folder"}]},{"group":"Dynamic secrets","pages":[{"title":"Lease credentials","href":"/sdks/languages/go/dynamic-secrets/create-lease"},{"title":"List leases","href":"/sdks/languages/go/dynamic-secrets/list-leases"},{"title":"Get a lease","href":"/sdks/languages/go/dynamic-secrets/get-lease"},{"title":"Renew a lease","href":"/sdks/languages/go/dynamic-secrets/renew-lease"},{"title":"Delete a lease","href":"/sdks/languages/go/dynamic-secrets/delete-lease"},{"title":"List dynamic secrets","href":"/sdks/languages/go/dynamic-secrets/list-dynamic-secrets"},{"title":"Get a dynamic secret","href":"/sdks/languages/go/dynamic-secrets/get-dynamic-secret"}]},{"group":"KMS","pages":[{"title":"Create a key","href":"/sdks/languages/go/kms/create-key"},{"title":"Get a key by name","href":"/sdks/languages/go/kms/get-key-by-name"},{"title":"Delete a key","href":"/sdks/languages/go/kms/delete-key"},{"title":"Encrypt data","href":"/sdks/languages/go/kms/encrypt"},{"title":"Decrypt data","href":"/sdks/languages/go/kms/decrypt"},{"title":"Sign data","href":"/sdks/languages/go/kms/sign"},{"title":"Verify a signature","href":"/sdks/languages/go/kms/verify"},{"title":"List signing algorithms","href":"/sdks/languages/go/kms/list-signing-algorithms"},{"title":"Get a key's public key","sidebarTitle":"Get a public key","href":"/sdks/languages/go/kms/get-public-key"}]},{"group":"Agent Vault","pages":[{"title":"Agent Vault","sidebarTitle":"Overview","href":"/sdks/languages/go/agent-vault/overview"},{"group":"Sessions","pages":[{"title":"List sessions","href":"/sdks/languages/go/agent-vault/list-sessions"},{"title":"Get a session","href":"/sdks/languages/go/agent-vault/get-session"},{"title":"Create a session","href":"/sdks/languages/go/agent-vault/create-session"},{"title":"Update session label and metadata","sidebarTitle":"Update a session","href":"/sdks/languages/go/agent-vault/update-session"},{"title":"Revoke a session","href":"/sdks/languages/go/agent-vault/revoke-session"}]},{"group":"Proxies","pages":[{"title":"List proxies","href":"/sdks/languages/go/agent-vault/list-proxies"},{"title":"Create a proxy","href":"/sdks/languages/go/agent-vault/create-proxy"},{"title":"Update a proxy","href":"/sdks/languages/go/agent-vault/update-proxy"},{"title":"Delete a proxy","href":"/sdks/languages/go/agent-vault/delete-proxy"},{"title":"Rotate a proxy token","href":"/sdks/languages/go/agent-vault/rotate-proxy-token"},{"title":"Revoke a proxy","href":"/sdks/languages/go/agent-vault/revoke-proxy"}]},{"group":"Access bundles","pages":[{"title":"List access bundles","href":"/sdks/languages/go/agent-vault/list-access-bundles"},{"title":"Get an access bundle","href":"/sdks/languages/go/agent-vault/get-access-bundle"},{"title":"Create an access bundle","href":"/sdks/languages/go/agent-vault/create-access-bundle"},{"title":"Update an access bundle","href":"/sdks/languages/go/agent-vault/update-access-bundle"},{"title":"Delete an access bundle","href":"/sdks/languages/go/agent-vault/delete-access-bundle"},{"title":"List grantees","href":"/sdks/languages/go/agent-vault/list-grantees"},{"title":"List available grantees","href":"/sdks/languages/go/agent-vault/list-available-grantees"},{"title":"Grant access","href":"/sdks/languages/go/agent-vault/grant-access"},{"title":"Revoke access","href":"/sdks/languages/go/agent-vault/revoke-access"}]},{"group":"Delegations","pages":[{"title":"List delegations","href":"/sdks/languages/go/agent-vault/list-delegations"},{"title":"Get a delegation","href":"/sdks/languages/go/agent-vault/get-delegation"},{"title":"Set a delegation","href":"/sdks/languages/go/agent-vault/set-delegation"},{"title":"List available users and groups","href":"/sdks/languages/go/agent-vault/list-available-subjects"},{"title":"Add users and groups","href":"/sdks/languages/go/agent-vault/add-subjects"},{"title":"Remove users and groups","href":"/sdks/languages/go/agent-vault/remove-subjects"},{"title":"Delete a delegation","href":"/sdks/languages/go/agent-vault/delete-delegation"}]}]}]},{"dropdown":".NET","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/dotnet.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical .NET SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/dotnet"},{"title":"Client and authentication","href":"/sdks/languages/dotnet/client"},{"title":"Errors and retries","href":"/sdks/languages/dotnet/errors-and-retries"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/dotnet/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/dotnet/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/dotnet/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/dotnet/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/dotnet/secrets/delete-secret"}]},{"group":"PKI subscribers","pages":[{"title":"Issue a certificate","href":"/sdks/languages/dotnet/pki/issue-certificate"},{"title":"Get the latest certificate bundle","href":"/sdks/languages/dotnet/pki/get-latest-certificate-bundle"}]}]},{"dropdown":"Rust","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/rust.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Rust SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/rust"},{"title":"Client and authentication","href":"/sdks/languages/rust/client"},{"title":"Errors","href":"/sdks/languages/rust/errors"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/rust/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/rust/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/rust/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/rust/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/rust/secrets/delete-secret"}]},{"group":"KMS","pages":[{"title":"List keys","href":"/sdks/languages/rust/kms/list-keys"},{"title":"Get a key","href":"/sdks/languages/rust/kms/get-key"},{"title":"Create a key","href":"/sdks/languages/rust/kms/create-key"},{"title":"Update a key","href":"/sdks/languages/rust/kms/update-key"},{"title":"Delete a key","href":"/sdks/languages/rust/kms/delete-key"},{"title":"Encrypt data","href":"/sdks/languages/rust/kms/encrypt"},{"title":"Decrypt data","href":"/sdks/languages/rust/kms/decrypt"},{"title":"Sign data","href":"/sdks/languages/rust/kms/sign"},{"title":"Verify a signature","href":"/sdks/languages/rust/kms/verify"},{"title":"List signing algorithms","href":"/sdks/languages/rust/kms/list-signing-algorithms"},{"title":"Get a public key","href":"/sdks/languages/rust/kms/get-public-key"}]}]},{"dropdown":"Java","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/java.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Java SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/java"},{"title":"Client and authentication","href":"/sdks/languages/java/client"},{"title":"Errors","href":"/sdks/languages/java/errors"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/java/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/java/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/java/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/java/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/java/secrets/delete-secret"}]},{"group":"Folders","pages":[{"title":"List folders","href":"/sdks/languages/java/folders/list-folders"},{"title":"Get a folder","href":"/sdks/languages/java/folders/get-folder"},{"title":"Create a folder","href":"/sdks/languages/java/folders/create-folder"},{"title":"Update a folder","href":"/sdks/languages/java/folders/update-folder"},{"title":"Delete a folder","href":"/sdks/languages/java/folders/delete-folder"}]},{"group":"Projects","pages":[{"title":"Get a project by slug","href":"/sdks/languages/java/projects/get-project-by-slug"}]}]},{"dropdown":"C++","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/cpp.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical C++ SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/cpp"},{"title":"Client and authentication","href":"/sdks/languages/cpp/client"},{"title":"Errors","href":"/sdks/languages/cpp/errors"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/cpp/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/cpp/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/cpp/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/cpp/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/cpp/secrets/delete-secret"}]}]},{"dropdown":"PHP","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/php.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical PHP SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/php"},{"title":"Client and authentication","href":"/sdks/languages/php/client"},{"title":"Errors","href":"/sdks/languages/php/errors"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/php/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/php/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/php/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/php/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/php/secrets/delete-secret"}]}]},{"dropdown":"Ruby","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/ruby.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Ruby SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/ruby"},{"title":"Client and authentication","href":"/sdks/languages/ruby/client"},{"title":"Errors and retries","href":"/sdks/languages/ruby/errors-and-retries"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/ruby/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/ruby/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/ruby/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/ruby/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/ruby/secrets/delete-secret"}]}]},{"dropdown":"Perl","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/perl.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Perl SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/perl"},{"title":"Client and authentication","href":"/sdks/languages/perl/client"},{"title":"Errors and retries","href":"/sdks/languages/perl/errors-and-retries"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/perl/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/perl/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/perl/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/perl/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/perl/secrets/delete-secret"}]}]}]}]}]},"basePath":"","title":"Set a delegation - Infisical","deploymentId":"dpl_BsHU5ynwUyfZMwoLvGC66duJuw65","buildId":"dpl_BsHU5ynwUyfZMwoLvGC66duJuw65","dynamics":["2b790eda92"],"chunks":["ApiExamples-DFGM09p_.js","usePlaygroundInputsStore-DkwJlKUE.js","shallow-BHRrfnLS.js","utils-Bkq2iFgu.js","utils-ZwMhYBEy.js","isEqual-BJ_QXy06.js","_Uint8Array-Ai_0D4xE.js","isObject-FP1Yky1u.js","CodeSnippets-DIweseYm.js","CodeSnippet-8p36p4M7.js","snippetPresets-T_OU6iFp.js","style-to-object-BY3JEAdk.js","use-playground-group-access-B8gEWau8.js","cloneDeep-CmgCbVBT.js","v4-DIgz8zy6.js"]}