question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I am owner in the database and schema but i can't view the tables

See original GitHub issue

I am owner in the database and schema but i can’t view the tables. In the ldap2pg.yml i put myself in the group owner. When i log in to the database i can create a new table in the schema, but i can’t view the table that i created.

CREATE TABLE myschema.accounts27 ( user_id serial PRIMARY KEY, username VARCHAR ( 50 ) UNIQUE NOT NULL, password VARCHAR ( 50 ) NOT NULL, email VARCHAR ( 255 ) UNIQUE NOT NULL, created_on TIMESTAMP NOT NULL, last_login TIMESTAMP ); CREATE TABLE

\d accounts27 ERROR: permission denied for table pg_class

ldap2pg.yml

ldap2pg.yml ``` yml ... ```

grant:

  • privilege: ro role: mygroup_readers database: mydatabase schema: myschema
  • privilege: rw role: mygroup_writers schema: myschema database: mydatabase
  • privilege: ddl role: mygroup_owners schema: myschema database: mydatabase

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:36 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
bersacecommented, Dec 13, 2021

@diegodblr De nada 😃

0reactions
diegodblrcommented, Dec 13, 2021

Hi @bersace, in my test all is working fine. I can access only the databases that i am owner, writer or reader. And i can see the descrition of table that i created. Thanks for your support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dbo cannot see tables or procedures in database - MSDN
The owned schema is db_Owner. Hello,. Just having "dbo" as default schema for the user don't mean he has also already "db_owner" permissions....
Read more >
Users cannot view tables in non-default schema in SSMS
On my 2008R2 instance when I grant db_datareader or db_datawriter they can see all schemas. I do realize that's not what you're looking...
Read more >
Users can't see tables part of a schema in SSMS
Right click on the database name (not the view name) >> Properties >> Permissions >> select the user >> Click on "View Definition"...
Read more >
Unable to see the schema tables .. — oracle-tech
Hello, I have admin rights to the database and can see the tables. A user was granted select all tables but cannot see...
Read more >
Why can a user query database but can't see it and the tables ...
SELECT permission is required to read data from table. SQL. GRANT SELECT ON OBJECT::dbo.TableName TO UserName; INSERT permission for writing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found