0

I know that to add permissions to a specific user, you format a permissions resource like so:

new_permission = {
    'value': 'me@gmail.com',
    'type': 'user',
    'role': 'reader'
}

But, what if i want to grant read-only access to anyone? I guess, something like:

new_permission = {
    'type': 'anyone',
    'role': 'reader',
    'value': ???!
}

What do I put as 'value'?

Harlo Holmes
  • 5,145
  • 1
  • 23
  • 20

1 Answers1

1

Well, it turns out that "value" is not required parameter for type=anyone.

new_permission = {
    'type': 'anyone',
    'role': 'reader'
}

works just fine.

Harlo Holmes
  • 5,145
  • 1
  • 23
  • 20