T-SQL Tuesday #183 Invite: Tracking Permissions

·

It’s time for T-SQL Tuesday again and this month I’m hosting. I realized that I didn’t host in 2024 and since I run the thing, I ought to be a part of it one of these days.

So, this is that month. The format is the invite comes out today and you have a week to write a post. Please post it on your blog and link back to this post or leave a comment on this post with the link to yours. That way I can summarize in a few weeks.

With that, the invite…

Managing Database Permissions

One of the things I see lots of people struggle with is the database permissions for their logins/users. DBAs or Ops people are always getting requests to add people, rarely requests to remove people, and not often enough, requests to audit who has permissions.

Lots of systems that live for years have people with too many permissions but no one knows this.

It could be SQL Server, Oracle, CosmosDB, RDS, PlanetScale, etc. Well not that last one, they haven’t been around for years, have they? They have, since 2018, so maybe people do have this issue in MySQL.

Ultimately, we have to audit or understand permissions at some point. Or we need to update permissions. This could be a developer task (as they add/change objects) or it could be strictly Operations. I’ve seen both.

This month, I’m wondering how you track permissions, which I assume involves some code. Show us a good way to do any of these:

  • check permissions
  • update permissions
  • add new logins/users across systems
  • remove people
  • report on permissions at various levels (user, object, database, etc.)

You should publish your post on Feb 11, 2024 UTC. Link back to this post with a trackback/pingback or a comment.

Looking forward to what you come up with.

Comments

7 responses to “T-SQL Tuesday #183 Invite: Tracking Permissions”

  1. Rob Farley Avatar

    Thanks for hosting and for all you do for T-SQL Tuesday.

    My post is over at https://lobsterpot.com.au/blog/2025/02/11/permissions-and-security-health-checks/

    Rob

    Like

  2. […] This month, we have Steve Jones [ blog ] asking us to talk about permissions. […]

    Like

  3. […] The 183rd edition of T-SQL Tuesday is hosted by Steve Jones. He has picked everyone’s favorite (cough) topic: permissions, and how to manage them. […]

    Like

  4. […] T-SQL Tuesday! This month, Steve Jones (blog | Bluesky) asks how we track and manage […]

    Like

  5. […] Jones (Blog) has taken off the co-ordinator hat and put on the hosting hat for this months TSQL Tuesday, and […]

    Like

  6. T-SQL Tuesday #183 Roundup | Voice of the DBA Avatar

    […] hosted this month’s T-SQL Tuesday party with my invitation asking about tracking permissions. I didn’t get my own post completed in time, but I’ll add it in the next week […]

    Like

  7. T-SQL Tuesday #183: Improving Permission Management | Voice of the DBA Avatar

    […] is my (late) answer to my own invitation for T-SQL Tuesday #183. I was very busy a few weeks ago when the invite when out (glad it was scheduled) and I never got […]

    Like