diff --git a/src/core/server/workspaces/saved_objects/workspace_saved_objects_client_wrapper.ts b/src/core/server/workspaces/saved_objects/workspace_saved_objects_client_wrapper.ts index 0e4452dc23e3..941ea8824020 100644 --- a/src/core/server/workspaces/saved_objects/workspace_saved_objects_client_wrapper.ts +++ b/src/core/server/workspaces/saved_objects/workspace_saved_objects_client_wrapper.ts @@ -122,6 +122,12 @@ export class WorkspaceSavedObjectsClientWrapper { objects: Array>, options: SavedObjectsCreateOptions = {} ): Promise> => { + if (options.workspaces) { + await this.validateMultiWorkspacesPermissions(options.workspaces, wrapperOptions.request, [ + PermissionMode.Write, + PermissionMode.Management, + ]); + } return await wrapperOptions.client.bulkCreate(objects, options); };