Close
logodocs

sdm admin users grant

NAME:
sdm admin users grant - grant user access to a datasource by name, or to a group of datasources by filter
USAGE:
sdm admin users grant [command options] [datasource-name] <user-email-1> [user-email-2 user-email-n...]
OPTIONS:
--template, -t display a JSON template
--file value, -f value load grants from JSON file
--stdin, -i load from stdin
--filter value filter e.g. 'field:name tag:key=value ...'
--filter-json value path to JSON based filter

Additional Information

The --template command produces example --file or --stdin input:

[
{
"datasourceName": "",
"datasourceID": "rs-0000000000000000",
"users": [
{
"id": "a-0000000000000000",
"email": ""
}
]
}
]

Example --filter-json file:

[
{
"lastName":"S1"
}
]
Previous
sdm admin users delete
Next
sdm admin users grant-all