Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Database Information

...

Database NameDatabase TypeCollection Name
%tenant_code%_uracMongoDBusers


Record Explanation

...


Field NameTypeMandatoryUniqueIndexedDescription
_idMongo IDYESYESYESMongo Record ID
usernameStringYESYESYESThe UserName
passwordHashYESNONOThe User Password
firstNameStringYESNONOThe User First Name
lastNameStringYESNONOThe User Last Name
emailStringYESYESYESThe User Email
statusStringYESNONOThe User Status pendingNew or active
profileObjectNONONOAdditional User Info.
configObjectNONONO



Field NameTypeMandatoryUniqueIndexedDescription

allowedTenants

ArrayNONONOSub tenant access
keysObjectYESNONO Overridden ACL Keys
packagesObjectNONONO Overridden ACL Packages



Field NameTypeMandatoryUniqueIndexedDescription
%packageName%ObjectNONO

NO





Field NameTypeMandatoryUniqueIndexedDescription
aclObjectNONONO



Field NameTypeMandatoryUniqueIndexedDescription
accessBoolean or ArrayNONONO
apisPermissionStringNONONO
apisObjectNONONO



Field NameTypeMandatoryUniqueIndexedDescription
%apiRoute%ObjectYESNONO



Field NameTypeMandatoryUniqueIndexedDescription
accessObjectNONONO







tenantObject YES NONO 



Field NameTypeMandatoryUniqueIndexedDescription
idStringYESNONOTenant ID
codeStringYESNONOTenant Code 


groupsArrayYESNONOArray Of Group Codes
tsTime stampYESNONOrecord created timestamp


Sample

...

Code Block
languagejs
titleUser Record Sample
var data = {
	"_id": ObjectId("5d308c68687aaf05b1c24097"),
	"locked": true,
	"username": "owner",
	"password": "$2a$12$geJJfv33wkYIXEAlDkeeuOgiQ6y6MjP/YxbqLdHdDSK7LDG.7n7Pq",
	"firstName": "owner",
	"lastName": "owner",
	"email": "me@localhost.com",
	"ts": Double(1563462760715.0),
	"status": "active",
	"profile": {},
	"groups": [
		"owner"
	],
	"config": {
		"packages": {},
		"keys": {}
	},
	"tenant": {
		"id": "5c0e74ba9acc3c5a84a51259",
		"code": "DBTN"
	},
	"lastLogin": Double(1564068005777.0)
};