Skip to content

Check user scopes for a provider #497

Discussion options

You must be logged in to vote

This is possible today using something like

from arcadepy import Arcade
from dotenv import load_dotenv

load_dotenv()

client = Arcade()

connections = client.admin.user_connections.list() #you will get a paginated list of user connections here

You can also call this endpoint: https://reference.arcade.dev/api-reference#tag/admin/get/v1/admin/user_connections

You will get a response that looks like this:

{
  "items": [
    {
      "connection_id": "string",
      "connection_status": "string",
      "id": "string",
      "provider_description": "string",
      "provider_id": "string",
      "provider_user_info": null,
      "scopes": [
        "string"
      ],
      "user_id": "string"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by torresmateo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants