URL : v3/api/ldap/search-bases

Method : POST

Query Parameters :

Parameter Type Optional/Required Description
import boolean Optional Needs to be passed if wants to import users before saving the search bases.

Don’t pass(or pass as false) if wants to skip the import part and directly save the search query

search_basis array Required Will be an array of objects (see the below documentation structure of search basis )

[{

“id”:1,

“ldap_id”:1, “user_type”:”agent”,     

“search_base”:”search base”, “department_ids”:[1,”2″],

“organization_ids”:[]

}]

Response :

{

"success":true,

"message":"Successfully saved"//message is not finalised yet

}

 

Tagged: