Skip to content

DOC-1730 Add rbac Examples#950

Open
priyankagunaki-cloud wants to merge 1 commit into
4.2from
DOC-1730-add-rbac-type-attribute-examples
Open

DOC-1730 Add rbac Examples#950
priyankagunaki-cloud wants to merge 1 commit into
4.2from
DOC-1730-add-rbac-type-attribute-examples

Conversation

@priyankagunaki-cloud

Copy link
Copy Markdown

No description provided.

[source,gsql]
----
CREATE ROLE role1 ON GLOBAL
GRANT PRIVILEGE READ_DATA ON VERTEX G1.city TO role1

@jue-yuan jue-yuan Jun 25, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the new object privilege syntax.

GRANT READ ON VERTEX city IN GRAPH G1 TO role1

[source,gsql]
----
CREATE ROLE role2 ON GLOBAL
GRANT PRIVILEGE READ_DATA ON VERTEX G1.person(id, name) TO role2

@jue-yuan jue-yuan Jun 25, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto. Please use the new object privilege syntax.

GRANT READ ON VERTEX city ATTRIBUTE id, name IN GRAPH G1 TO role2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants