_User.getAll()

Function to get the list of all users of current network

Example Usage

{% set userDetails = _User.getAll({'metaInfo': {'attributeName' : 'attribute value'}}) %}

Parameters

AttributeDescription
status1(active) or 0(inactive)
userGuidGUID of user
metaInfo[attributeName]attribute value

Response Example

[
	{
		"id": "1",
		"guid": "22dd6cb6-5611-49ad-bf90-841dab7de87e",
		"username": "admin",
		"firstname": "Rohit",
		"lastname": "Gupta",
		"email": "[email protected]",
		"bio": "I am a software developer",
		"profileMedia": {
			"id": "mt0jr5y3xvvm6yxgjpor",
			"cloudName": "cognitives",
			"path": "http://res.cloudinary.com/cognitives/image/upload/v1479377416/mt0jr5y3xvvm6yxgjpor.jpg"
		},
		"additionalInfo": {
			"addtional_description": "05-07-2017 12:00 AM",
			"hobbies": "reading_books",
			"fav_actor": "tom_cruise,liz_hurley",
			"mother_tongue": "english",
			"big_description": "admin blog description",
			"media": "https://cog-development.s3-ap-southeast-2.amazonaws.com/media/10/2017/Jul/26/L5Gn5aBzKEAdAwe2WeDf.jpg"
		}
	}
]

Response Description

AttributeDescription
idUser ID of the user
guidGUID of the user
usernameUsername
firstnameFirst name
lastnameLast name
emailEmail of the user
bioProfile description of the user
profileMediaProfile image of the user
additionalInfoAn array of additional attributes. Array key is the name of the attribute and value is the value of the attribute.

Profile Image

AttributeDescription
idCloudinary Cloud ID of the image
cloudNameCloudinary Cloud name
pathCloudinary Cloud path of the image