Forum Discussion

avhemert's avatar
avhemert
Copper Contributor
Nov 23, 2017

User permissions in database

I'm looking for an SQL query to find out the several user permissions in database. Within Saherpoint per site it's possible to view the permissions. Several sites have a lot of specific additional permissions. Can I get all these permissions for  database? And which tables do I need to find that out.

5 Replies

  • Edwin Arlington's avatar
    Edwin Arlington
    Copper Contributor

    Here are related query for your reference:

     

    https://www.sqlservercentral.com/Forums/Topic1560182-1550-1.aspx

     

    • Trevor Seward's avatar
      Trevor Seward
      MVP
      That's not what was asked. The OP wants to get SharePoint permissions, not database user permissions. But at the same time, it's not supported to query the database directly.
  • You shouldn't ever be querying a SharePoint database. If you need a broad permissions report, I'd suggest looking into 3rd party tools such as Sharegate or SPDocKit.
    • avhemert's avatar
      avhemert
      Copper Contributor

      These tools look quit expensive. The only thing I want is to run a report each three months to find out the several permissions in Sharepoint en do something with it.

      Are there more tools available to do that?

Resources