trait UsersDAO extends AnyRef
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- UsersDAO
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
- abstract val dynclient: DynamicsClient
- abstract val ec: ExecutionContext
Concrete Value Members
- def addRole(systemuserId: String, roleId: String): IO[Boolean]
- def getRoleByName(name: String): IO[Option[RoleJS]]
- def getRoles(organizationId: Option[String] = None, businessUnitId: Option[String] = None): IO[Seq[RoleJS]]
- def getRolesForUser(id: String): IO[Seq[RoleJS]]
-
def
getUserAndCurrentRolesByEmail(email: String): IO[Option[(SystemuserJS, Seq[RoleJS])]]
Get user and roles if user does not exist return None.
- def getUserByEmail(email: String): IO[Option[SystemuserJS]]
- def getUsers(): IO[Seq[SystemuserJS]]
- def removeRole(systemuserId: String, roleId: String): IO[Boolean]
-
def
validateRoleNames(names: Seq[String]): IO[(Seq[String], Seq[String], Seq[RoleNameJS])]
Given a list of string role names, return (valid, invalid, all) role names.
Given a list of string role names, return (valid, invalid, all) role names. "all" is all role (id, name) tuples in the org.