Verified Commit 4f24dd26 authored by p.jbowden's avatar p.jbowden
Browse files

add firstName, lastName and email to init_realm_admin script

parent 1a5c33a0
......@@ -113,9 +113,8 @@ When creating a new project, you must add an ASCLEPIOS `keyid` field for subject
New users can be added to keycloak via the Registration Authority using the following utlity script. `role` should be one of `owner`, `member` or `collaborator`
python3 -m utils.create_user
usage: [-h] username firstName lastName email project role error: the following arguments are required: username, firstName, lastName, email, project, role
$ python3 -m utils.init_realm_admin
usage: [-h] username firstName lastName email project
* Once a user has been created, set there password to a tempory password in the keycloak admin interface.
......@@ -13,11 +13,17 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("username", help="Keycloak Username", type=str)
parser.add_argument("firstName", help="First Name", type=str)
parser.add_argument("lastName", help="Last Name", type=str)
parser.add_argument("email", help="Email Address", type=str)
parser.add_argument("project", help="Project", type=str)
args = parser.parse_args()
payload = {
"username": args.username,
"firstName": args.firstName,
"lastName": args.lastName,
"keys": ["project", "role"],
"values": [args.project, "owner"],
"enabled": "true",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment