Manage users, groups and services of the ETH Identity and Access Management system (IAM)
Project description
ETHZ IAM Webservice
Manage users, groups and various services of the ETH Identity and Access Management system (IAM).
Command Line Interface
When installing this module, the iam command is also installed. The basic parameters which are always needed – otherwise they will be asked interactivley – are:
$ iam -u admin-username --password MY-SECRET-PASSWORD
You can also set these environment variables instead:
$ export IAM_USERNAME=admin-username
$ export IAM_PASSWORD=MY-SECRET-PASSWORD
Group
$ iam group --help # get extensive help text
# create new group
$ iam group --new id-test-test-01 --ag "ID SIS" -d 'some test description' -t AD -t LDAP ou=AGRL
$ iam group <group-name> # info about a group
$ iam group <group-name> -a user1 -a user2 # add new users
$ iam group <group-name> -r user3 -r user4 # remove users
Mailing list
$ iam maillist --help # get extensive help text
$ iam maillist <group-name> # info about a group
$ iam maillist <group-name> -a user1 -a user2 # add new users
$ iam maillist <group-name> -r user3 -r user4 # remove users
User
Get info about a person (identity). You might either provide a username, a NPID or a email address.
$ iam user --help
$ iam user username
$ iam user some.person@ethz.ch
$ iam user 123445
Guest
Create guests. For the new guest a new username will automatically be generated. This user gets LDAP and VPN service granted. Because by policy the VPN password needs to differ from the other passwords, the result will present the two initial passwords that are set shortly after creating the guest.
CLI
$ iam guest get <username>
$ iam guest new --help
$ iam guest new -f firstname -l lastname -m first.last@unknown.org -d "my test guest" -h host_username -a "Admingroup Name"
{
"firstName": "first",
"lastName": "last",
"mail ": "first.last@unknown.org",
"host ": "host_username",
"respAdminRole ": "Admingroup Name",
"description": "my test guest",
"dateOfBirth": "16.06.2000",
"guestTechnicalContact": "somebody@ethz.ch",
"notification": "To guest and host",
"hostOrg": "06006",
"startDate": "16.06.2021",
"endDate": "16.06.2022",
"username": "flast",
"npid": "3210159",
"init_ldap_password": "xxxxxxx",
}
Default values:
--technicalContact / -cwill default to the email address of the host--notification / -nwill default to «gh», meaning guest and host will be notified when a guest account expires.--startDate / -sis today.--endDate / -eis today + 1 year--dateOfBirth / -bis today's date in year 2000
Extend guest. After a year, you might want to extend the validity of your guest by another year or by a specific number of months
$ iam guest extend <username> # will extend the guest by 1 year
$ iam guest extend <username> -m 6 # extend it by today+6 months
$ iam guest extend <username> -e 1.4.2022 # extend it until April 1st. 2022
$ iam guest extend <username> -e 2022-04-01 # same thing, different date format
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ethz_iam_webservice-0.16.10.tar.gz.
File metadata
- Download URL: ethz_iam_webservice-0.16.10.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.2","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e5d5b17720d82b6d4bf08e3acc7fea7fc6309e7ed06791742ba3cde8503cb78
|
|
| MD5 |
0fa6f1980197e1d0bc1311c0c2d78151
|
|
| BLAKE2b-256 |
2408bd48782b57926d9fffc40a6431119ab5c40643b2d885356cdb1a19d25710
|
File details
Details for the file ethz_iam_webservice-0.16.10-py3-none-any.whl.
File metadata
- Download URL: ethz_iam_webservice-0.16.10-py3-none-any.whl
- Upload date:
- Size: 29.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.2","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b0889522b7af39aff90eb68e24c90f43535432c021d58c1c88e15a2f50b723d
|
|
| MD5 |
2e76d76e7cafdd0918c097a595b16a2c
|
|
| BLAKE2b-256 |
5c006f73dae130604e70f504348ea34ca9a6bf6e7c3a510134bf4eec77cc04f8
|