Skip to main content

Manage users, groups and services of the ETH Identity and Access Management system (IAM)

Project description

ETH IAM Webservice

Manage users, groups and services of the ETH Identity and Access Management system (IAM)

Synopsis

import ethz_iam_webservice
import getpass

password = getpass.getpass()

e = ethz_iam_webservice.login('admin4iam', password)

person = e.get_person('name@example.com')
person = e.get_person('some_username')
person = e.get_person(123456) # npid, the identifer of every person

person.usernames     # an array of dicts of usernames
person.data          # the whole response
person.firstname
person.familyname
person.email
# etc.

user = e.get_user('username')
person = user.get_person()
user.services        # returns an array of dicts of services

user.grant_service("LDAPS")
user.grant_service("Active Directory")
user.grant_service("WLAN_VPN")

user.revoke_service("LDAPS")
# etc.

user.delete()  # Method currently not allowed

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ethz_iam_webservice-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file ethz_iam_webservice-0.0.1.tar.gz.

File metadata

  • Download URL: ethz_iam_webservice-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for ethz_iam_webservice-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fdd7c106b95e293d86f7571da3d30ec7434aa2c0b44a4b39d899a79abdc00d75
MD5 436aa2cc884e540e6c525e8b8b5260c5
BLAKE2b-256 c438043d0a80ec59be643134af9a0687705531f13e1bd494d6a743cc5ff43563

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page