Useful DQL Queries: Groups and Roles

List all roles in the system:

select group_name from dm_group where group_class =
‘role’



List all users who are members of this group, including those who are members of groups contained in this group:

select i_all_users_names from dm_group where
group_name = ‘SalesDept’


List all groups a particular user can modify:

select group_name from dm_group where group_admin
= ‘Norman’ or owner_name = ‘Norman’

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: