This is a translation of the original English documentation page. Help us make it better.

userdirectory.delete

Description

object userdirectory.delete(array userDirectoryIds)

This method allows to delete user directories. User directory cannot be deleted when it is directly used for at least one user group.
Default LDAP user directory cannot be deleted when authentication.ldap_configured is set to 1 or when there are more user directories left.

This method is only available to Super admin user type.

Parametri

"(array)" ID delle directory utente da eliminare.

Valori di ritorno

(object) Restituisce un oggetto contenente gli ID dei proxy eliminati sotto la proprietà proxyids.

Esempi

Deleting multiple user directories

Delete two user directories.

Request:

{
           "jsonrpc": "2.0",
           "method": "userdirectory.delete",
           "params": [
               "2",
               "12"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "userdirectoryids": [
                   "2",
                   "12"
               ]
           },
           "id": 1
       }

Fonte

CUserDirectory::delete() in ui/include/classes/api/services/CUserDirectory.php.