Skip to content

Instantly share code, notes, and snippets.

@teknofire
Last active May 13, 2019 22:06
Show Gist options
  • Save teknofire/3a92ab7a6f882adf8202532ba7a7a8cb to your computer and use it in GitHub Desktop.
Save teknofire/3a92ab7a6f882adf8202532ba7a7a8cb to your computer and use it in GitHub Desktop.
{
"action": "*",
"resource": "*",
"subjects": [
"team:ldap:ldap-admins-group"
]
}
@teknofire
Copy link
Author

teknofire commented May 13, 2019

Save the above file as admin-policy.json
Then modify the ldap-admins-group to match the name of the ldap group the user belongs to
Apply it to automate using the following commands

export TOK=`chef-automate admin-token`
curl -k -H "api-token: $TOK" -H "Content-Type: application/json" -d@admin-policy.json https://localhost/api/v0/auth/policies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment