FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Users, Roles, Groups
How-ToMachine Learning

Users, Roles, Groups

via Dev.toAshiq Omar2h ago

Lets understand roles and permissions with a few practical questions. QN 1: Create a login role that can only read from film table CREATE ROLE report_user LOGIN ; GRANT SELECT ON film TO report_user ; we create a user called report_user and give it only SELECT permission on the film table. So it can read data but cant modify anything. 2: Accessing customer table gives permission denied fix it GRANT SELECT ON customer TO report_user ; The error happens because report_user doesnt have access to the customer table. Granting SELECT fixes the issue. 3: Allow access to only specific columns REVOKE SELECT ON customer FROM report_user ; GRANT SELECT ( customer_id , first_name , last_name ) ON customer TO report_user ; we remove full access. Then we grant access only to selected columns. Now the user can’t see sensitive fields like email or other data. 4: Create a support user with limited permissions CREATE ROLE support_user LOGIN ; GRANT SELECT ON customer TO support_user ; GRANT UPDATE ( ema

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

“Learn to Code” Is Dead… Learn to Think Instead
How-To

“Learn to Code” Is Dead… Learn to Think Instead

Medium Programming • 21m ago

How-To

How One File Makes Claude Code Actually Follow Your Instructions

Medium Programming • 33m ago

LeetCode Solution: 121. Best Time to Buy and Sell Stock
How-To

LeetCode Solution: 121. Best Time to Buy and Sell Stock

Dev.to Tutorial • 43m ago

The Feature Took 2 Hours to Build — and 2 Weeks to Fix
How-To

The Feature Took 2 Hours to Build — and 2 Weeks to Fix

Medium Programming • 1h ago

Blog 15: SDLC Phase 4 — Testing
How-To

Blog 15: SDLC Phase 4 — Testing

Medium Programming • 2h ago

Discover More Articles