diff --git a/changelogs/fragments/8907.yml b/changelogs/fragments/8907.yml
new file mode 100644
index 000000000000..c797c5a557c2
--- /dev/null
+++ b/changelogs/fragments/8907.yml
@@ -0,0 +1,2 @@
+feat:
+- Add privacy levels to the workspace ([#8907](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8907))
\ No newline at end of file
diff --git a/src/plugins/workspace/public/components/add_collaborators_modal/add_collaborators_modal.test.tsx b/src/plugins/workspace/public/components/add_collaborators_modal/add_collaborators_modal.test.tsx
index fdc56756dcf2..21ba92fa011e 100644
--- a/src/plugins/workspace/public/components/add_collaborators_modal/add_collaborators_modal.test.tsx
+++ b/src/plugins/workspace/public/components/add_collaborators_modal/add_collaborators_modal.test.tsx
@@ -125,4 +125,14 @@ describe('AddCollaboratorsModal', () => {
expect(addCollaboratorsButton).not.toBeDisabled();
});
});
+
+ it('should show "Invalid Collaborator ID format" for "*" collaborator id', async () => {
+ render(
-
+
|
-
-
+ class="euiCheckbox euiCheckbox--inList euiCheckbox--noLabel"
+ >
+
+
+
-
-
-
+ |
- ID
+
+ ID
+
-
- |
-
-
+ |
- Type
-
-
- |
-
-
+ Type
+
+
+ |
+
- Access level
+
+ Access level
+
-
- |
-
-
+ |
- Actions
+
+ Actions
+
-
- |
-
- |
+ |
---|---|---|---|---|---|---|---|---|---|---|
-
+ class="euiCheckbox euiCheckbox--inList euiCheckbox--noLabel"
+ >
+
+
+
-
- |
-
-
+
- ID
-
- |
+
+ ID
+
+
+
+ admin
+
+
+
-
- admin
-
-
- |
-
- |
+
+
+ —
+
+
- Type
-
- |
+
+ Access level
+
+
+ Admin
+
+
- —
-
- |
-
+ Actions
+
+ |
+
+
+
+
+
+
+
+ | |||
- Admin - - | -
-
+ ID
+
+
+
+ foo
+
+
+ |
+
- Actions
-
-
+ Type
+
+
+ —
+
+ |
+
+ Access level
+
+
+ Read and write
+
+ |
+
+
+ Actions
+
+
-
+
+
|
- ||||||
+ | ||||||||||
-
+
- ID
-
- |
+
+ ID
+
+
+
+ bar
+
+
+
-
- foo
-
-
- |
-
- |
-
- Type
-
-
- —
-
-
- |
-
- Access level
-
-
- Read and write
-
-
- |
-
- Actions
-
-
+ Type
+
-
-
-
-
-
+ —
| |||||
-
+
|
-
-
-
+ Access level
-
-
- |
-
- ID
-
-
-
- bar
-
-
-
- |
-
- Type
-
-
- —
-
-
- |
-
- Access level
-
-
- Read only
-
-
- |
+
- Actions
-
-
+
|
-
+ Actions
+
+
-
+
+
|
-
+
|
-
-
-
-
-
-
-
- ID
-
-
- |
-
-
+
+
+
+
+ |
+
- Type
+
+ ID
+
-
- |
-
-
+ |
- Access level
+
+ Type
+
-
- |
-
-
+ |
- Actions
+
+ Access level
+
-
- |
-
+ |
+
+
+ Actions
+
+
+ |
+ |
---|---|---|---|---|---|---|---|---|---|---|
-
- ID
-
-
+
-
- admin
-
-
- |
-
- |
-
- Type
-
-
- —
-
-
- |
+
- Access level
-
-
+
+
+ admin
+
+
+
- Admin
-
- |
-
- |
+
+ Type
+
+
+ —
+
+
- Actions
-
- |
+
+ Access level
+
+
+ Admin
+
+
|
-
+ Actions
+
+
-
+
+
| |||
+ | ||||||||||
-
- ID
-
-
+
-
- foo
-
-
- |
-
- |
+
- Type
-
-
+
+
+ foo
+
+
+
- —
-
- |
-
- |
+
+ Type
+
+
+ —
+
+
- Access level
-
- |
+
+ Access level
+
+
+ Read and write
+
+
- Read and write
-
- |
-
+ Actions
+
+ |
+
+
+
+
+
+
+
+ | |||
+ ID
+
+
-
-
-
-
-
+ bar
+
|
- ||||||||||
-
+
|
-
-
-
+ Type
-
-
- |
-
- ID
-
-
-
- bar
-
-
-
- |
-
- Type
-
-
- —
-
-
- |
-
- Access level
-
-
- Read only
-
-
- |
+
+
- Actions
-
- |
+
+ Access level
+
+
+ Read only
+
+
|
-
+ Actions
+
+
-
+
+
|