• AUDIT
  • UPDATE
  • ASSIGN
  • HUMAN

How to manage user roles and permissions with your AI

Connect SuperTokens to your AI client to handle permission changes through chat. Your agent performs the technical updates while you stay in the conversation.

Ask AI about this page

Short answer

How can I change user permissions using my AI?

You tell your AI client what changes to make, and it uses SuperTokens tools to update roles or assign them to specific users. You get immediate access control updates without touching a dashboard.

Permission outcomes

Where your changes land.

Your agent translates your requests into direct permission updates.

AUDIT

View current roles

The AI pulls a list of existing roles or checks what specific users can currently do. You get a clear view of your current permission structure.

UPDATE

Modify role settings

Your agent changes the permissions tied to a specific role. This updates what every user assigned to that role can access.

ASSIGN

Change user access

The AI maps a specific role to a user. This instantly changes that person's capabilities within your system.

HUMAN

Manual oversight

You decide which roles are appropriate for which users. The AI only executes the changes you explicitly authorize in chat.

The workflow

What your AI does when the request arrives.

Your agent handles the logic of finding and applying permission changes.

  1. Identify roles

    The agent looks up what roles currently exist in your system to ensure it uses the right names.

    list_roles
  2. Check user status

    Before making changes, the agent checks what permissions a user already has to avoid mistakes.

    list_user_roles
  3. Adjust permissions

    The agent modifies the definition of a role to add or remove specific access rights.

    create_or_update_role
  4. Apply access

    The agent links a specific role to a user account to finalize the permission change.

    assign_role_to_user

Try it

Copy these to start.

Use these prompts to trigger the SuperTokens tools.

Starting points

Replace the bracketed names with your actual role names or user IDs.

SuperTokens Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_CP9DImFvaf6eyl0RkLBvary4O9crAiMiAhFMQLXQ/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — SuperTokens capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "supertokens-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_CP9DImFvaf6eyl0RkLBvary4O9crAiMiAhFMQLXQ/mcp"
    }
  }
}
Copy into chat04
  • List all the current roles in SuperTokens.

  • What roles does user 'alex_dev' currently have?

  • Update the 'editor' role to include delete permissions.

  • Assign the 'admin' role to user 'sam_manager'.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect SuperTokens once, then ask.

Just link your account once. Your credentials stay encrypted, and you can start managing permissions immediately in any compatible client.

Connect SuperTokens to your AI

FAQ

How this task behaves.

  • 01

    Can the AI delete a user account?

    No. The available tools only allow for managing roles and assignments, not deleting users.

  • 02

    Will the AI change permissions without asking me?

    No. The AI only executes the specific role updates or assignments you request in your chat session.

  • 03

    Can I see a list of everyone in a specific role?

    No. The agent can list roles and user roles, but it does not have a tool to list all users belonging to a single role.

  • 04

    Does this work with any AI client?

    Yes, it works with any client that supports the Model Context Protocol.

  • 05

    Can the AI create entirely new permission types?

    Yes, the agent can create or update roles to define new permission sets.

  • More questions about SuperTokens? The Connector page answers them. See everything the SuperTokens Connector can do

Connect SuperTokens to Claude, Cursor, ChatGPT & more