v3.20.0

Getting Started Devices Gateways Integrations Reference
Get The Things Stack

Getting Started

    Overview
  • Quick Start
  • What Is The Things Stack?
  • Console
  • Command-line Interface
  • Installing The Things Stack
  • Upgrading The Things Stack
  • Migrating to The Things Stack
  • The Things Stack Cloud
  • The Things Stack AWS Launcher
  • The Things Network
  • Server Addresses
  • Packet Broker
  • Single Sign-On
  • Users and Organizations
    • Organization Management
    • Rights Management
    • Troubleshooting User Management
    • User Management
  • Using the API
  • Working with Events
  • Troubleshooting Getting Started

Rights Management

This section contains instructions for managing rights.

  • Console
  • CLI

Managing Rights using the Console

Managing Collaborators

In addition to the written instructions linked below, a video with instructions for managing collaborator rights is available on The Things Network youtube channel.

Show video

Gateways, End Devices, and Applications have a Collaborators tab which allows you to specify rights for users or organizations on that entity. To manage collaborators, click the Collaborators tab in the left hand menu.

Click the Add collaborator button to add a collaborator.

Select the rights you wish the collaborator to have, and click Add collaborator to save your selection.

Rights apply to entities which a user or organization is a member (collaborator) of. To grant rights to an entity, add the user or organization as a collaborator of the entity.

Managing Rights using the CLI

We define some user parameters that will be used below:

ORGANIZATION_ID="org1"
USER_ID="user1"
APP_ID="app1"
GTW_ID="gateway1"

Make sure to modify these according to your setup.

Adding Collaborators

To add collaborators for Gateways, End Devices, or Applications, use the collaborators add command. For example, to add a collaborator user1 to the application app1 with rights to read and write device info and delete applications, use the command

ttn-lw-cli applications collaborators set --application-id $APP_ID \
  --user-id $USER_ID \
  --right-application-delete \
  --right-application-devices-read \
  --right-application-devices-write

To see the list of possible rights for an entity, use the --help flag, e.g ttn-lw-cli applications collaborators set --help.

Listing Collaborators

To see which rights a user has on an entity, use the collaborators list command. For example, to see collaborators for the gateway gateway1, use the command:

ttn-lw-cli gateways collaborators list --gateway-id $GTW_ID
← Organization Management Troubleshooting User Management →

On this page

  • Managing Rights using the Console
  • Managing Collaborators
  • Managing Rights using the CLI
  • Adding Collaborators
  • Listing Collaborators

The Things Stack

Getting Started

Devices

Gateways

Integrations

Reference

Contributing

GitHub

Forum

About Us

The Things Network

The Things Industries

About this page

Last changed by Nejra Selimović on 23 Dec 2021.
doc: Remove $ character from code blocks, add variables (#678)

Edit on Github