steampipe plugin install marekjalovec/make

Table: make_user_role

User roles usable for users within your Organizations and Teams. The column category signifies where the role can be used.

Key columns

  • Provide a numeric id if you want to query for a specific User Role.

Examples

List of all User Roles available in the account

select
id,
name,
subsidiary,
category,
permissions
from
make_user_role;

List of all Admins in the account

select
distinct u.name as user_name,
o.name as organization_name
from
make_user u
inner join make_user_organization_role uor on uor.user_id = u.id
join make_organization o on o.id = uor.organization_id
where
uor.users_role_id = 1;

Schema for make_user_role

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
categorytextCan the Role be used on the Organization, or Team level?
idbigintThe user ID.
nametextThe name of the Role.
permissionsjsonbPermissions of the users in the Role.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
subsidiarybooleanIs the Role defined in an Organization, or is it part of the account?
titletextThe display name for the resource.