Users
Extends:
API → Users
Method Summary
| Public Methods | ||
| public | 
      
       Searches for an existing user by email address.  | 
    |
| public | 
      
       Retrieves a user's details by their user id.  | 
    |
| public | 
      
       Invites a user to PageProof by their email.  | 
    |
Public Methods
public byEmail(email: string): Promise<User> source
Searches for an existing user by email address.
Params:
| Name | Type | Attribute | Description | 
| string | The email address of the user to retieve  | 
    
public byId(userId: string): Promise<User> source
Retrieves a user's details by their user id.
Params:
| Name | Type | Attribute | Description | 
| userId | string | The user's unique identifier  | 
    
public invite(email: string): Promise<User> source
Invites a user to PageProof by their email.
PageProof handles sending the user an invitation email whenever they are added to a proof. You can invite a user to PageProof using this method when creating a workflow template, however they won't recieve an email immediately unless they're added to a proof as an owner, or to an active workflow.
Params:
| Name | Type | Attribute | Description | 
| string | The email address of the user to invite  |