pio access grant¶
New in version 5.0.
Contents
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.
Examples¶
- 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"
- 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"