Determines if a user exists in ThingsDB.
This function requires GRANT
privileges on the @thingsdb
scope.
This function does not generate a change.
has_user(username)
Argument | Type | Description |
---|---|---|
username | str (required) | User to check. |
Returns true
if the user exists and otherwise false
.
This code shows an example use case of has_user():
has_user('admin');
Return value in JSON format
true