...
Info |
---|
For this model the |
Code Block |
---|
{
"$or": [
{ "name": { "$regex": "exampleSearchString", "$options": "i" } },
{ "email": { "$regex": "exampleSearchString", "$options": "i" } }
]
}
|
SCHEMA
Name | Description |
---|---|
_id | The id of this user. |
name | Name of the user. |
The email of the user. | |
organisations | A list of organisation ids that this user belongs to. |
organisationSettings | A list of organisation settings for this user |
imageUrl | A url of an image for this user. |
googleId | The user’s google id. |
ownerOrganisation | The id of the users owning organisation |
ownerOrganisationSettings | Duplication of organisation settings. |
settings | An object of specific users settings. see settings |
scopes | Global scopes for this user. |
verified | Whether this user has been verified. |
resetTokens | A list of reset tokens. See reset token. |
passwordHistory | A list of users previously used password hashes. |
authLastAttempt | When the user last attempted to authenticate. |
authFailedAttempts | Number of failed authentication attempts. |
authLockoutExpiry | When the user can attempt to authenticate again. |
...