createUser
Create a DataSync user.
Parameters
Version of the entity class.
Optional user identifier. When null the server generates one.
Optional entity class identifier. When null the server defaults it to User. When set it must be a User subclass.
Optional level at which the entity class is defined. Disambiguates a class defined at more than one level. Create-only — not accepted by setUser. The built-in User class is defined at the GLOBAL level.
Optional user status.
Optional arbitrary JSON object payload. The payload is free-form, but the built-in User class indexes the name and type properties: populating them here makes the user filterable and sortable on name / type in getUsers. Any other payload property is stored but not queryable unless a subclass that extends User declares it filterable (such a subclass inherits the name / type indexes and may add its own). The built-in fields id, createdAt, updatedAt, and status are always filterable/sortable regardless of payload.