Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SaleemBeg's avatar

How do I remove default Token Permissions from a role?

Hi,

It's the first time I am building an API with Laravel Jetstream.

In JetstreamServiceProvider I have defined the role as follows:

    Jetstream::role('corporate', 'Corporate Member', [
        'company:list',
        'company:view',
    ])->description('Corporate Members can list and view all Companies.');

However, when I log in as a user with corporate role (and that's the only role the user has), and click on API Tokens, sure enough it shows me the two permissions above, but it also lists create, delete, read and update.

What can I do to ensure the above role only has the two permissions I listed above?

0 likes
3 replies
SaleemBeg's avatar

Thanks Nihir,

My question wasn't about revoking a token from a user. It's about removing default permissions from a role, as in the example above, I am defining what permissions the 'corporate' role should have. It does grant the two permissions to the role, but it also adds the four more: create, delete, read and update which I would like to remove.

Please or to participate in this conversation.