Skip to content

Instantly share code, notes, and snippets.

@bjinwright
Created August 1, 2021 23:04
Show Gist options
  • Save bjinwright/be330a36e1dc61d7129b89992541514e to your computer and use it in GitHub Desktop.
Save bjinwright/be330a36e1dc61d7129b89992541514e to your computer and use it in GitHub Desktop.
Create Role in Fauna
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