Функция требует авторизации
Описание - Изменяет статус пользователя (активный или заблокированный) с указанным в запросе ИД
Параметры
Имя | Описание | Тип | Пример |
status
отправка в url
|
Новый статус пользователя | Active, Terminated, LeaveOfAbsence, Default, All | |
userIds
отправка в body
|
Список ИД пользователей | Collection of GUIDs
коллекция
|
9924256A-739C-462b-AF15-E652A3B1B6EB |
Возвращает - Список пользователей
Пример ответа
application/json
{ "status": 0, "response": [ { "id": "00000000-0000-0000-0000-000000000000", "userName": "Mike.Zanyatski", "isVisitor": false, "firstName": "Mike", "lastName": "Zanyatski", "email": "my@gmail.com", "birthday": "2020-12-08T14:19:59.7413984Z", "sex": "male", "status": 1, "activationStatus": 0, "terminated": "2020-12-08T14:19:59.7413984Z", "department": "Marketing", "workFrom": "2020-12-08T14:19:59.7413984Z", "location": "Palo Alto", "notes": "Notes to worker", "displayName": null, "title": "Manager", "contacts": [ { "type": "GTalk", "value": "my@gmail.com" } ], "groups": [ { "id": "00000000-0000-0000-0000-000000000000", "name": "Group Name", "manager": "Jake.Zazhitski" } ], "avatarMedium": "url to medium avatar", "avatar": "url to big avatar", "isAdmin": false, "isLDAP": false, "listAdminModules": [ "projects", "crm" ], "isOwner": false, "cultureName": "en-EN", "isSSO": false, "avatarSmall": "url to small avatar", "profileUrl": "" } ] }
text/xml
0 00000000-0000-0000-0000-000000000000 Mike.Zanyatski false Mike Zanyatski my@gmail.com 2020-12-08T14:19:59.7413984Z male 1 0 2020-12-08T14:19:59.7413984Z Marketing 2020-12-08T14:19:59.7413984Z Palo Alto Notes to worker /> GTalk my@gmail.com 00000000-0000-0000-0000-000000000000 Group Name Jake.Zazhitski url to medium avatar url to big avatar false false projects crm false en-EN false url to small avatar