Skip to content

DOC-1730 Add rbac Examples - #950

Merged
priyankagunaki-cloud merged 2 commits into
4.2from
DOC-1730-add-rbac-type-attribute-examples
Jun 30, 2026
Merged

priyankagunaki-cloud merged 2 commits into
4.2from
DOC-1730-add-rbac-type-attribute-examples

Conversation

@priyankagunaki-cloud

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jue-yuan , I have updated the page. Please review

[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

@priyankagunaki-cloud
priyankagunaki-cloud merged commit b38061e into 4.2 Jun 30, 2026
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