Add user to a site.


  • Full name: add_user_to_site
  • Defined in: cms/core/Shared/Helpers/site.php

Parameters

Parameter Type Description
$user string|\App\Domain\User\Model\User User to add to a site.
$site string|\App\Domain\Site\Model\Site Site to add user to.
$role string Role to assign to user for this site.

Return Value

false|string

User id on success or false on failure.