You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5836fce
Browse filesBrowse the repository at this point in the historyBrowse files
|`--expected-revision <value>`| Yes | Current permission revision obtained before generating this snapshot. |
292
-
|`--user-mapping <json\|@file>`| Yes | GitLab user IDs and their verified Sim email addresses. (JSON, or @path / @- to read a file or stdin). |
293
-
|`--project-permissions <json\|@file>`| Yes | GitLab project paths and the IDs of users granted access. (JSON, or @path / @- to read a file or stdin). |
291
+
|`--expected-revision <value>`| Yes | Permission revision read before exporting the grants. |
292
+
|`--permissions <json\|@file>`| Yes | Complete permission grants in the source provider’s format. (JSON, or @path / @- to read a file or stdin). |
294
293
|`-y, --yes`| Yes | Confirm this operation. |
295
294
296
295
</CommandTable>
297
296
298
-
API request and response schemas: [replaceGitLabSearchPermissions](/api-reference/organizations/replaceGitLabSearchPermissions).
297
+
API request and response schemas: [replaceSearchSourcePermissions](/api-reference/organizations/replaceSearchSourcePermissions).
|`--expected-revision <value>`| Yes | Current permission revision obtained before generating this snapshot. |
4349
-
|`--user-mapping <json\|@file>`| Yes | GitLab user IDs and their verified Sim email addresses. (JSON, or @path / @- to read a file or stdin). |
4350
-
|`--project-permissions <json\|@file>`| Yes | GitLab project paths and the IDs of users granted access. (JSON, or @path / @- to read a file or stdin). |
4351
-
|`-y, --yes`| Yes | Confirm this operation. |
4352
-
4353
-
</CommandTable>
4354
-
4355
-
API request and response schemas: [replaceGitLabSearchPermissions](/api-reference/organizations/replaceGitLabSearchPermissions).
4356
-
4357
4291
### sim organizations get
4358
4292
4359
4293
Get organization (OAuth login or personal API key required)
Copy file name to clipboardExpand all lines: apps/docs/content/docs/search/gitlab.mdx
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ To rotate the PAT, supply its replacement in source settings. A blank token reta
89
89
90
90
### Automate updates with GitLab CI
91
91
92
-
After an admin configures a source in **Non-admin token** mode, a job can [read its revision](/api-reference/organizations/getGitLabSearchPermissions) and [replace both CSVs](/api-reference/organizations/replaceGitLabSearchPermissions). Copy `SIM_ORG_ID` and `SIM_SOURCE_ID` from the source settings URL: `/o/<organizationId>/settings/integrations/sources/<sourceId>`. Set `SIM_BASE_URL` to your Sim origin (for hosted Sim, `https://www.sim.ai`).
92
+
After an admin configures a source in **Non-admin token** mode, a job can [read its revision](/api-reference/organizations/getSearchSourcePermissions) and [replace both CSVs](/api-reference/organizations/replaceSearchSourcePermissions). Copy `SIM_ORG_ID` and `SIM_SOURCE_ID` from the source settings URL: `/o/<organizationId>/settings/integrations/sources/<sourceId>`. Set `SIM_BASE_URL` to your Sim origin (for hosted Sim, `https://www.sim.ai`).
93
93
94
94
Store an organization admin's [personal Sim API key](/api-reference/authentication) as a [masked, protected GitLab CI variable](https://docs.gitlab.com/ci/variables/) named `SIM_API_KEY`. A personal key inherits its owner's access. This endpoint can only read the revision or replace both CSVs; it cannot change the GitLab PAT, host, or project.
0 commit comments