Created
August 1, 2021 23:04
-
-
Save bjinwright/be330a36e1dc61d7129b89992541514e to your computer and use it in GitHub Desktop.
Create Role in Fauna
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
result = real_client.query( | |
q.create_role({ | |
"name": "new-role-c", | |
"privileges": [ | |
{ | |
"resource": q.function("create_user"), | |
"actions": { | |
"call": True | |
} | |
} | |
] | |
}) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment