Documentation
IPS_UserExists
bool IPS_UserExists (string $User)
Parameters
| User | Name of the user to be checked (case-sensitive) |
Returns
If the user exists, TRUE is returned, otherwise FALSE.
Description
The function checks whether a user with the name User exists. The check is case-sensitive. The @admin user always exists, whereas the special user @unknown is not an actual user, so the function returns FALSE for it.
The function requires neither the RBAC feature in the license nor administrator permissions.
Example
if (IPS_UserExists('anna')) {
echo 'User exists!';
}