Loading...

Permissions Manager

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
senior

Problem

Our IAM service processes permission operations in sequence: 'grant' adds a permission, 'revoke' removes one, 'check' returns whether a user has a specific permission, and 'update_config' replaces all permissions wholesale. Write a function that processes these operations and returns the results of all 'check' operations.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.