Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2025 11:40 AM
Try this:
SQL Query Options:
- Databricks SQL supports the
SHOW GROUPScommand to list all groups within a system. This command optionally allows filtering by specific user associations or regular expressions to identify desired groups. - The statement syntax is:
SHOW GROUPS [ WITH USER user_principal | WITH GROUP group_principal ] [ [ LIKE ] regex_pattern ];This can be used to fetch specific groups associated with users. The output provides columns likename(group name) anddirectGroup(membership type: direct/indirect or NULL if no principal is specified)