Resource Description for UserRoleAssignment

Properties for UserRoleAssignment

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
businessRoleAssignment BusinessRoleAssignment
endDatetime DateTime
startDatetime DateTime
user User
userRole UserRole

SDK Example for PHP

<?PHP

use Arbor\Api\Gateway\RestGateway;
use Arbor\Model\ModelBase;
use Arbor\Model\UserRoleAssignment;

ModelBase::setDefaultGateway(
    new RestGateway(
        "https://my-school.arbor.sc/rest-v2",
        "my.username@my-school.arbor.sc",
        "3bh54435v3gh45"
    )
);

$userRoleAssignment = UserRoleAssignment::retrieve(5433);

$user = $userRoleAssignment->getUser();
$userRole = $userRoleAssignment->getUserRole();
$businessRoleAssignment = $userRoleAssignment->getBusinessRoleAssignment();
$startDatetime = $userRoleAssignment->getStartDatetime();
$endDatetime = $userRoleAssignment->getEndDatetime();

 

Related Resources