Get staffs listing
GET a list of all staffs group in your organisation
/GetStaffsListing
import requests
url = “https://stageapi.cfsemoney.com/v1/GetStaffsListing”
payload={}
headers = {
‘x-api-key’: ‘Your-API-KEY‘,
‘Authorization’: ‘Bearer <<bearer-token>>’
}
response = requests.request(“GET”, url, headers=headers, data=payload)
print(response.text)
{
“statusCode”: 200,
“body”: “{\”status\”: true, \”data\”: [{\”groupName\”: \”SN-API-user\”, \”userList\”: [\”swapnilapiuser5572\”]}, {\”groupName\”: \”SN-API-user2\”, \”userList\”: [\”swapnilapiuser5572\”]}, {\”groupName\”: \”spm4spacetel.voicetecsys.adminuser.group\”,
\”userList\”: [\”it7271\”, \”rajat.goel4502\”]}, {\”groupName\”: \”SPM staffs \”, \”userList\”: [\”ganeshv7236\”,
\”ganesh.vaidhyanathan8640\”, \”it7271\”, \”lakshmana.prabhu9933\”, \”lakshmanaprabhu.m1411\”, \”rajat.goel4502\”,
\”yusufalilulu3722461\”]}, {\”groupName\”: \”Sree users new\”, \”userList\”: [\”ganesh.vaidhyanathan9056\”, \”sreekesh9271\”]},
{\”groupName\”: \”Swapnil-API-user-group\”, \”userList\”: [\”snidar034705\”, \”swapnilapiuser5572\”]}],
\”message\”: \”success.\”}”
}
{
“statusCode”: 400,
“body”: “{\”message\”: \”xxx”}”
}