Skip to main content

Efaas User

Efaas User Object Attributes

The user object received from Socialite after login contains all the information received from Efaas systems to your application. It will contain all of the following attributes.

Available eFaas data fields

FieldDescriptionExample
nameFull NameAhmed Mohamed
given_nameFirst NameAhmed
middle_nameMiddle Name
family_nameLast NameMohamed
idnumberID number in case of maldivian and workpermit number in case of expatriatesA037420
genderGenderM or F
addressPermananet Address. Country will contain an ISO 3 Digit country code.["AddressLine1" => "Light Garden", "AddressLine2" => "", "Road" => "", "AtollAbbreviation" => "K", "IslandName" => "Male", "HomeNameDhivehi" => "ލައިޓްގާރޑްން", "Ward" => "Maafannu", "Country" => "462"]
phone_numberRegistered phone number9939900
emailEmail address[email protected]
fname_dhivehiFirst name in Dhivehiއަހުމަދު
mname_dhivehiMiddle name in Dhivehi
lname_dhivehiLast name in Dhivehiމުހައްމަދު
user_typeUser types
  • 1. Maldivian
  • 2. Work Permit Holder
  • 3. Foreigners
1
user_type_descDescription of the user typeMaldivian
verification_levelVerification level of the user in efaas:
  • 100: Not Verified
  • 150: Verified by calling
  • 200: Mobile Phone registered in the name of User
  • 250: Verified in person (Limited)
  • 300: Verified in person
300
verification_level_descDescription of the verification levelVerified in person
user_stateUser's state
  • 2- Pending Verification
  • 3- Active
3
user_state_descDescription of user's stateActive
birthdateDate of birth. (Carbon instance)10/28/1987
is_workpermit_activeIs the work permit activefalse
passport_numberPassport number of the individual (expat and foreigners only)
updated_atInformation Last Updated date. (Carbon instance)10/28/2017

Checking the nationality of an Efaas User

We provide a helper method that can determine if an Efaas user is a Maldivian or not. Simply call on the isMaldivian() method of the user object retrieved from the Socialite driver.

// Check if user is a Maldivian 
$efaas_user->isMaldivian();

Getting the Dhivehi fill name of an Efaas user.

There is another helper method that can give you the full Dhivehi name of the logged in user. Simply call the getDhivehiName() method for the user object.

$dhivehi_name = $efaas_user->getDhivehiName();