MD_SET_GUIDE_ACCESS
Preview
This feature is in preview and is subject to change.
Change a Guide's visibility to 'user' (private) or 'organization' (visible to your whole org). Setting org-wide access is admin-permission gated.
Syntax
SELECT * FROM MD_SET_GUIDE_ACCESS(
id = '<guide_uuid>',
access = 'organization'
);
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | UUID | Yes | The guide's UUID. |
access | VARCHAR | Yes | 'user' (private) or 'organization' (org-wide, admin-permission gated). |
Return columns
| Column | Type | Description |
|---|---|---|
id | UUID | Guide UUID |
topic | VARCHAR | Grouping label (NULL for guides without a topic) |
title | VARCHAR | Guide title |
description | VARCHAR | One-line summary |
owner_id | UUID | UUID of the guide owner |
owner_name | VARCHAR | Name of the guide owner |
access | VARCHAR | Updated access level |
current_version | UINTEGER | Latest version number |
created_at | TIMESTAMP WITH TIME ZONE | When the guide was created |
updated_at | TIMESTAMP WITH TIME ZONE | When the guide was last updated |
Examples
Publish a guide to the whole org:
SELECT access
FROM MD_SET_GUIDE_ACCESS(
id = 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
access = 'organization'
);
Make a guide private again:
SELECT access
FROM MD_SET_GUIDE_ACCESS(
id = 'b2c3d4e5-f6a7-8901-bcde-f12345678901',
access = 'user'
);
Related
MD_UPDATE_GUIDE_METADATA— Change title, description, or topic.MD_CREATE_GUIDE— Set access at creation time.set_guide_accessMCP tool — AI assistant equivalent.