t

dynamics.cli

UsersDAO

trait UsersDAO extends AnyRef

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UsersDAO
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val dynclient: DynamicsClient
  2. abstract val ec: ExecutionContext

Concrete Value Members

  1. def addRole(systemuserId: String, roleId: String): IO[Boolean]
  2. def getRoleByName(name: String): IO[Option[RoleJS]]
  3. def getRoles(organizationId: Option[String] = None, businessUnitId: Option[String] = None): IO[Seq[RoleJS]]
  4. def getRolesForUser(id: String): IO[Seq[RoleJS]]
  5. def getUserAndCurrentRolesByEmail(email: String): IO[Option[(SystemuserJS, Seq[RoleJS])]]

    Get user and roles if user does not exist return None.

  6. def getUserByEmail(email: String): IO[Option[SystemuserJS]]
  7. def getUsers(): IO[Seq[SystemuserJS]]
  8. def removeRole(systemuserId: String, roleId: String): IO[Boolean]
  9. 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.