Creates a new member or club rep. If terms
is specified, a member is created; if non_member_terms
is specified, a club rep is created.
uid | string (UID) Username |
cn | string (UserCN) Full name + |
sn | string (UserSN) Last name + |
given_name | string (UserGivenName) First name |
program | string (Program) Academic program |
terms | Array of strings (Terms) Terms for which this user was a member |
non_member_terms | Array of strings (NonMemberTerms) Terms for which this user was a club rep |
forwarding_addresses | Array of strings <email> (ForwardingAddresses) Forwarding addresses in ~/.forward |
{- "uid": "ctdalek",
- "cn": "Calum Dalek",
- "program": "MAT/Mathematics Computer Science",
- "terms": [
- "f2021"
], - "non_member_terms": [
- "f2021"
], - "forwarding_addresses": [
- "ctdalek@uwaterloo.ca"
]
}
{"status": "in progress", "operation": "add_user_to_ldap"} +
{- "uid": "ctdalek",
- "cn": "Calum Dalek",
- "sn": "Dalek",
- "given_name": "Calum",
- "program": "MAT/Mathematics Computer Science",
- "terms": [
- "f2021"
], - "non_member_terms": [
- "f2021"
], - "forwarding_addresses": [
- "ctdalek@uwaterloo.ca"
]
}
{"status": "in progress", "operation": "add_user_to_ldap"} {"status": "in progress", "operation": "add_group_to_ldap"} {"status": "in progress", "operation": "add_user_to_kerberos"} {"status": "in progress", "operation": "create_home_dir"} {"status": "in progress", "operation": "send_welcome_message"} {"status": "in progress", "operation": "subscribe_to_mailing_list"} {"status": "in progress", "operation": "announce_new_user"} -{"status": "completed", "result": {"cn": "Calum Dalek", "uid": "ctdalek", "uid_number": 20001, "gid_number": 20001, "login_shell": "/bin/bash", "home_directory": "/users/ctdalek", "is_club": false, "program": "MAT/Mathematics Computer Science", "terms": ["f2021"], "forwarding_addresses": ["ctdalek@uwaterloo.ca"], "password": "Wlw1wOTofERTEBlXWzR6/MZL"}} +{"status": "completed", "result": {"cn": "Calum Dalek", "given_name": "Calum", "sn": "Dalek", "uid": "ctdalek", "uid_number": 20001, "gid_number": 20001, "login_shell": "/bin/bash", "home_directory": "/users/ctdalek", "is_club": false, "program": "MAT/Mathematics Computer Science", "terms": ["f2021"], "forwarding_addresses": ["ctdalek@uwaterloo.ca"], "password": "Wlw1wOTofERTEBlXWzR6/MZL"}}
Returns information about a member or club rep. The forwarding_addresses
field will only be present if the client is an authenticated syscom member.
username required | string username of the user to return |
{- "cn": "Calum Dalek",
- "uid": "ctdalek",
- "uid_number": 20001,
- "gid_number": 20001,
- "home_directory": "/users/ctdalek",
- "is_club": false,
- "login_shell": "/bin/bash",
- "program": "MAT/Mathematics Computer Science",
- "positions": [
- "president"
], - "terms": [
- "f2021"
], - "non_member_terms": [
- "f2021"
], - "forwarding_addresses": [
- "ctdalek@uwaterloo.ca"
]
}
{- "cn": "Calum Dalek",
- "sn": "Dalek",
- "given_name": "Calum",
- "uid": "ctdalek",
- "uid_number": 20001,
- "gid_number": 20001,
- "home_directory": "/users/ctdalek",
- "is_club": false,
- "login_shell": "/bin/bash",
- "program": "MAT/Mathematics Computer Science",
- "positions": [
- "president"
], - "terms": [
- "f2021"
], - "non_member_terms": [
- "f2021"
], - "forwarding_addresses": [
- "ctdalek@uwaterloo.ca"
]
}
Replace the login shell and/or forwarding addresses of a user
username required | string username of the user to modify |
login_shell | string (LoginShell) Login shell |
forwarding_addresses | Array of strings <email> (ForwardingAddresses) Forwarding addresses in ~/.forward @@ -597,7 +599,7 @@ The JSON request body may be omitted. {"status": "completed", "result": "OK"} |