Go to documentation repository
Documentation for Axxon Next 4.5.0. Documentation for other versions of Axxon Next is available too.
Previous page Next page
Na stronie:
Utwórz rolę
{ "method": "axxonsoft.bl.security.SecurityService.ChangeConfig", "data": { "added_roles": [ { "index": "60c60ed4-47e3-4d5e-9737-0f00b684f535", "name": "newRole", "comment": "comment", "timezone_id": "00000000-0000-0000-0000-000000000000", "supervisor": "00000000-0000-0000-0000-000000000000" } ] } }
Uwaga!
timezone_id - ID strefy czasowej; jeśli wynosi ono 00000000-0000-0000-0000-000000000000, strefa czasowa to Always (zawsze).
supervisor - ID roli, która będzie rolą nadrzędną ze wszystkimi uprawnieniami (zobacz: Tworzenie oraz konfiguracja ról). Jeśli ID to 00000000-0000-0000-0000-000000000000, rola jest niezdefiniowana.
Utwórz użytkownika
{ "method": "axxonsoft.bl.security.SecurityService.ChangeConfig", "data": { "added_users": [ { "index": "393b06f3-d419-441d-8834-b5d1824c135a", "login": "user", "name": "user", "comment": "comment", "date_created": "", "date_expires": "", "enabled": true, "ldap_link": { "server_id": "", "username": "", "dn": "" }, "restrictions": { "web_count": 0, "mobile_count": 0 }, "email": "", "cloud_id": 160, "extra_fields": { "SocialId": "test", "IpAddress": "160.85.208.94", "CompanyId": "test" }, ], "locked_till": "" } ] } }
Dodaj użytkownika do roli
{ "method": "axxonsoft.bl.security.SecurityService.ChangeConfig", "data": { "added_users_assignments": [ { "user_id": "52537c93-3efc-4465-b553-1c1ccf42faef", "role_id": "75863211-6fe5-4a79-9abf-f8137b1e767c" } ] } }
Blokowanie i odblokowywanie użytkowników
{ "method":"axxonsoft.bl.security.SecurityService.ChangeConfig", "data":{ "modified_users": [ { "index": "fa00ea14-0ff5-4586-b6c8-ea449391a3a8", "login": "user1", "name": "user1", "comment": "", "enabled": true, "ldap_server_id": "00000000-0000-0000-0000-000000000000", "ldap_domain_name": "", "restrictions": { "web_count": 2147483647, "mobile_count": 2147483647 }, "email": "", "cloud_id": "0", "extra_fields": { "SocialId": "test", "IpAddress": "160.85.208.94", "CompanyId": "test" }, ], "locked_till": "29990101T000000" } ] } }
gdzie parametr locked_till określa datę oraz czas w formacie YYYYMMDDTHHMMSS do której użytkownik będzie zablokowany.
Aby odblokować użytkownika, ustal datę oraz czas na mniejszą niż obecna.
Sprawdź dostępność nazwy użytkownika
{ "method": "axxonsoft.bl.security.SecurityService.CheckLogin", "data": { "login": "user" } }
Odpowiedź będzie zawierać następujące informacje:
- "result": "TAKEN" - użytkownik o danej nazwie już istnieje;
- "result": "FREE" - użytkownik o danej nazwie nie istnieje.
Overview
Content Tools