import { type User } from "https://deno.land/x/jamf_school@0.5.0/models/user.ts";
User represents a single user.
Methods
(Read) Update this user's data.
Other users created from the same data will not be updated.
(Read) Get all the devices assigned to this user.
(Read) Get all the groups the user is in.
(Read) Get all the groups the user can teach.
(Read) Get the location this user belongs to.
(Edit) Set this user's username.
This method will not update the user object. To update the object, call
User.update()
.
This method is a no-op if the username is the same as the user's current username.
(Edit) Set this user's LDAP domain.
This method will not update the user object. To update the object, call
User.update()
.
This method is a no-op if the domain is the same as the user's current domain.
(Edit) Set this user's first name.
This method will not update the user object. To update the object, call
User.update()
.
This method is a no-op if the name is the same as the user's current first name.
(Edit) Set this user's last name.
This method will not update the user object. To update the object, call
User.update()
.
This method is a no-op if the name is the same as the user's current last name.
(Edit) Set this user's Jamf School login password.
This method will not update the user object. To update the object, call
User.update()
.
(Edit) Set this user's email address.
This method will not update the user object. To update the object, call
User.update()
.
This method is a no-op if the email is the same as the user's current email.
(Edit) Set the groups this user is in.
This method will not update the user object. To update the object, call
User.update()
.
(Edit) Set this user's location. Moving a user will also move all the devices they own.
This method will not update the user object. To update the object, call
User.update()
.
This method is a no-op if the location ID is the same as the user's current location ID.
(Edit) Set the groups this user can teach.
This method will not update the user object. To update the object, call
User.update()
.
(Edit) Set this user's children.
This method will not update the user object. To update the object, call
User.update()
.