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 pendingJoin or active
profileObjectNONONOAdditional User Info.
socialIdObjectNONONOInformation pertaining to login integration with social platforms

%strategy%Object


The social platform name. facebook, google, twitter, etc


idStringYESYESYESThe id of the user at the social platform


accessTokenStringNOYESNOAn access token that can be used to validate if the social user account is still valid
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
packages
accessBoolean or ArrayNONONO
apisPermissionStringNONONO
apisObject
YESkeys
NONONO
ACL Packages




Field NameTypeMandatoryUniqueIndexedDescription
%apiRoute%ObjectYESNONO



Field NameTypeMandatoryUniqueIndexedDescription
accessObjectNONO
 
NO







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('57063608622c47b5c097d19b'),
   	"locked": true,
  	 "username": "owner",
   	"password": "$2a$04$GfQ/6TJX82HcCoq8z8R44uN6x38hmJVIh7sKXIxknjt9UjN/f90sy",
  	 "firstName": "owner",
	   "lastName": "owner",
  	 "email": "owner@soajs.org",
	   "ts": 1460024840683,
   	"status": "active",
   "profile": {},
   "socialId": {
      "facebook": {
         "id": "10153921831136546",
         "accessToken": "EAAEtfZBue5g4BAHxZC795RjLBHzM044Rd1lqJDMUzj1FNDkZD"
      },
      "google": {
         "id": "116534884477427572518",
         "accessToken": "ya29.Ci-gA_tPPWbT0qp5a3z4UwqzyIj1hQsMUuQ03mAmXFZQnVcaRsrmqJzK10oeBeIYGg",
         "refreshToken": "1/CnxzVU1kKh5NQsIJT5Mv2LkGguGCQqpVgwB0MuG7Qhc"
      }
   },
   "groups": [
      "owner"
   ],
   "config": {
	  "allowedTenants": [
			{
				"tenant": {
	"profile": {},
					"id": "THYME_tID",
					"code": "THYME_CODE",
					"pin": {
						"code": "5678",
						"allowed": true
					}
				},
				"groups": [
					"ownerwaiter"
				]
			},
	"config		{
				"tenant": {
					"id": "ELVIRA_tID",
					"code": "ELVIRA_CODE"
				},
				"groups: [
					"manager"
				]
			}
		]
      "packages": {},
		
      "keys": {}
   	},
	   "lastLogin": 1555968525788,
   "tenant": {
		
      "id": "5551aca9e179c39b760f7a1a",
      "code": "DBTN"
  	   "pin": {
			"code": "1235",
			"DBTN"allowed": true
		}
	}
};