Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You can only create 'sso', or 'embed' tokens as a Owner #17

Open
andrewryan1906 opened this issue Sep 1, 2024 · 1 comment
Open

You can only create 'sso', or 'embed' tokens as a Owner #17

andrewryan1906 opened this issue Sep 1, 2024 · 1 comment

Comments

@andrewryan1906
Copy link

I'm following the instructions in the academy article to create an embed token. I've got the API Key info correct, and I'm using the node client to run a client.create with:

{"type":"embed","username":"integration-tests","suborganization":"tests","name":"integration-tests","email":"[email protected]","access":{"collections":[{"id":"<MYGUID>","inheritRights":"use"},{"id":"<MYGUID>","inheritRights":"use"}]},"metadata":{"tenant_id":"tests"},"environment":"development"}

And I get this errror:

You can only create 'sso', or 'embed' tokens as a Owner.

I'm using the trial and as far as I can tell, I am an owner. So... what do I do?

@Khaled-Abdelal
Copy link
Contributor

You can check if you are the owner or not by making this request with the same user

{
        "attributes":["id"],
        "include":[{
            "model":"Organization",
            "attributes":["id"]
        }]
    }

it will give you a response like this
image
the important value would be flagOwn

if you need any further help please reach out to our support to get help faster as this issues section is not checked often.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants