pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
(no subject)
2+ messages / 2 participants
[nested] [flat]

* (no subject)
@ 2019-05-29 08:03 Pawan Sharma <pawanpg0963@gmail.com>
  2019-05-29 14:20 ` Re: Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Pawan Sharma @ 2019-05-29 08:03 UTC (permalink / raw)
  To: pgsql-general

Hello All,

Is it possible check privileges of all the users or roles, and what are the
objects owned by user and role with their privileges.

I am getting the output which want from
information_schema.roles_usage_grants, but as I not running the query as a
superuser so I am able to see only one specific user results but I want all
user and roles details.

Is there specific privileges which I can grant to that user to get the
complete results apart from superuser privilege.


Thanks in advance
Regards,
Pawan

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re:
  2019-05-29 08:03 (no subject) Pawan Sharma <pawanpg0963@gmail.com>
@ 2019-05-29 14:20 ` Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Adrian Klaver @ 2019-05-29 14:20 UTC (permalink / raw)
  To: Pawan Sharma <pawanpg0963@gmail.com>; pgsql-general

On 5/29/19 1:03 AM, Pawan Sharma wrote:
> Hello All,
> 
> Is it possible check privileges of all the users or roles, and what are 
> the objects owned by user and role with their privileges.
> 
> I am getting the output which want from 
> information_schema.roles_usage_grants, but as I not running the query as 
> a superuser so I am able to see only one specific user results but I 
> want all user and roles details.

Are you sure?

information_schema.roles_usage_grants is a view over 
information_schema.usage_privileges which only covers the USAGE 
privilege. This privilege is restricted to a subset of objects. Look in 
the object_type column.

My guess is you are going to end up using the system catalogs:
https://www.postgresql.org/docs/11/catalogs.html

Can you be more specific about the information you are looking for?

> 
> Is there specific privileges which I can grant to that user to get the 
> complete results apart from superuser privilege.
> 
> 
> Thanks in advance
> Regards,
> Pawan


-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-05-29 14:20 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-05-29 08:03  Pawan Sharma <pawanpg0963@gmail.com>
2019-05-29 14:20 ` Re: Adrian Klaver <adrian.klaver@aklaver.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox