platformio access grant

New in version 5.0.

Usage

pio access grant [OPTIONS] LEVEL <ORGNAME:TEAMNAME>|<USERNAME> URN

Description

Add the ability of users and teams to have “LEVEL” access to a resource.

The next levels are supported:

admin:

Administrative privileges. Can perform all available operations on the particular resource.

maintainer:

Read-write access. Can update a resource, publish a new version, unpublish existing version.

Cannot manage resource permissions and grant access to other members.

guest:

Read-only access. It’s automatically granted for the public resources.

You can grant access to the team members using the next format orgname:teamname. See the examples below.

Options

--urn-type

Resource type in URN form. Default is set to prn:reg:pkg which means to grant an access to the package in the PlatormIO Registry.

Examples

  1. Grant “maintainer” access to a resource for the “bob” user:

> pio access grant maintainer bob prn:reg:pkg:8036:platform
Access for resource "prn:reg:pkg:8036:platform" has been granted for "bob"
  1. Add the ability of PlatformIO’s “developer” team to have “admin” access to a resource.

> pio access grant admin platformio:developers prn:reg:pkg:8036:platform
Access for resource "prn:reg:pkg:8036:platform" has been granted for "platformio:developers"

See Also