Конечная точка Policy
Получение политики Сервиса Управления Пользователями (UMS)
GetPolicy
Параметр | Значение |
---|---|
HTTP-метод | GET |
Путь | https://<адрес сервера>/<имя приложения ЦИ>/ums/policy |
Параметры в строке запроса | - |
Параметры в теле запроса | - |
Возвращаемое значение | UmsPolicy - Политика Сервиса Управления Пользователями |
Пример запроса
GET https://{{hostname}}/{{instanceName}}/ums/policy HTTP/1.1
Пример ответа
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 6489
{
"AvaliableIdentifierTypes": [
"Login",
"PhoneNumber",
"Email"
],
"AuthMethods": [{
"Identifier": "http: //schemas.microsoft.com/ws/2012/09/identity/authenticationmethod/none",
"Type": "Primary"
},
{
"Identifier": "http: //dss.cryptopro.ru/identity/authenticationmethod/certificate",
"Type": "Primary"
},
{
"Identifier": "http: //dss.cryptopro.ru/identity/authenticationmethod/password",
"Type": "Primary"
},
{
"Identifier": "http: //dss.cryptopro.ru/identity/authenticationmethod/saml",
"Type": "Primary"
},
{
"Identifier": "http: //dss.cryptopro.ru/identity/authenticationmethod/otpviasms",
"Type": "Secondary"
},
{
"Identifier": "http: //dss.cryptopro.ru/identity/authenticationmethod/oath",
"Type": "Secondary"
},
{
"Identifier": "http: //dss.cryptopro.ru/identity/authenticationmethod/simauth",
"Type": "Secondary"
},
{
"Identifier": "http: //dss.cryptopro.ru/identity/authenticationmethod/otpviaemail",
"Type": "Secondary"
},
{
"Identifier": "http: //dss.cryptopro.ru/identity/authenticationmethod/mtmo",
"Type": "Secondary"
},
{
"Identifier": "http: //dss.cryptopro.ru/identity/authenticationmethod/mo",
"Type": "Secondary"
}],
"Rdns": [{
"Id": 1,
"Oid": "2.5.4.3",
"DisplayName": "Общее имя",
"StringIdentifier": "CN",
"Order": 6,
"MinLength": 0,
"MaxLength": 128,
"Required": false,
"ValueSet": []
},
{
"Id": 2,
"Oid": "2.5.4.42",
"DisplayName": "Имя Отчество",
"StringIdentifier": "G",
"Order": 2,
"MinLength": 0,
"MaxLength": 128,
"Required": false,
"ValueSet": []
},
{
"Id": 3,
"Oid": "2.5.4.4",
"DisplayName": "Фамилия",
"StringIdentifier": "SN",
"Order": 1,
"MinLength": 0,
"MaxLength": 40,
"Required": false,
"ValueSet": []
},
{
"Id": 4,
"Oid": "2.5.4.43",
"DisplayName": "Инициалы",
"StringIdentifier": "I",
"Order": 3,
"MinLength": 0,
"MaxLength": 5,
"Required": false,
"ValueSet": []
},
{
"Id": 5,
"Oid": "1.2.840.113549.1.9.1",
"DisplayName": "Электронная почта",
"StringIdentifier": "E",
"Order": 12,
"MinLength": 0,
"MaxLength": 128,
"Required": false,
"ValueSet": []
},
{
"Id": 6,
"Oid": "1.2.643.3.131.1.1",
"DisplayName": "ИНН",
"StringIdentifier": "INN",
"Order": 13,
"MinLength": 12,
"MaxLength": 12,
"Required": false,
"ValueSet": []
},
{
"Id": 7,
"Oid": "1.2.643.100.1",
"DisplayName": "ОГРН",
"StringIdentifier": "OGRN",
"Order": 16,
"MinLength": 13,
"MaxLength": 13,
"Required": false,
"ValueSet": []
},
{
"Id": 8,
"Oid": "1.2.643.100.5",
"DisplayName": "ОГРНИП",
"StringIdentifier": "OGRNIP",
"Order": 15,
"MinLength": 15,
"MaxLength": 15,
"Required": false,
"ValueSet": []
},
{
"Id": 9,
"Oid": "1.2.643.100.3",
"DisplayName": "СНИЛС",
"StringIdentifier": "SNILS",
"Order": 14,
"MinLength": 11,
"MaxLength": 11,
"Required": false,
"ValueSet": []
},
{
"Id": 10,
"Oid": "2.5.4.6",
"DisplayName": "Страна",
"StringIdentifier": "C",
"Order": 11,
"MinLength": 0,
"MaxLength": 2,
"Required": false,
"ValueSet": []
},
{
"Id": 11,
"Oid": "2.5.4.8",
"DisplayName": "Область",
"StringIdentifier": "S",
"Order": 10,
"MinLength": 0,
"MaxLength": 128,
"Required": false,
"ValueSet": []
},
{
"Id": 12,
"Oid": "2.5.4.7",
"DisplayName": "Город",
"StringIdentifier": "L",
"Order": 9,
"MinLength": 0,
"MaxLength": 128,
"Required": false,
"ValueSet": []
},
{
"Id": 13,
"Oid": "2.5.4.9",
"DisplayName": "Адрес",
"StringIdentifier": "Street",
"Order": 5,
"MinLength": 0,
"MaxLength": 30,
"Required": false,
"ValueSet": []
},
{
"Id": 14,
"Oid": "2.5.4.10",
"DisplayName": "Организация",
"StringIdentifier": "O",
"Order": 8,
"MinLength": 0,
"MaxLength": 64,
"Required": false,
"ValueSet": []
},
{
"Id": 15,
"Oid": "2.5.4.11",
"DisplayName": "Подразделение",
"StringIdentifier": "OU",
"Order": 7,
"MinLength": 0,
"MaxLength": 64,
"Required": false,
"ValueSet": []
},
{
"Id": 16,
"Oid": "2.5.4.12",
"DisplayName": "Должность",
"StringIdentifier": "T",
"Order": 4,
"MinLength": 0,
"MaxLength": 64,
"Required": false,
"ValueSet": []
}],
"RdnPolicy": {
"Default": [{
"Id": 1,
"Oid": "2.5.4.3",
"DisplayName": "Общее имя",
"StringIdentifier": "CN",
"Order": 6,
"MinLength": 0,
"MaxLength": 128,
"Required": false,
"ValueSet": []
},
{
"Id": 2,
"Oid": "2.5.4.42",
"DisplayName": "Имя Отчество",
"StringIdentifier": "G",
"Order": 2,
"MinLength": 0,
"MaxLength": 128,
"Required": false,
"ValueSet": []
},
{
"Id": 3,
"Oid": "2.5.4.4",
"DisplayName": "Фамилия",
"StringIdentifier": "SN",
"Order": 1,
"MinLength": 0,
"MaxLength": 40,
"Required": false,
"ValueSet": []
},
{
"Id": 4,
"Oid": "2.5.4.43",
"DisplayName": "Инициалы",
"StringIdentifier": "I",
"Order": 3,
"MinLength": 0,
"MaxLength": 5,
"Required": false,
"ValueSet": []
},
{
"Id": 5,
"Oid": "1.2.840.113549.1.9.1",
"DisplayName": "Электронная почта",
"StringIdentifier": "E",
"Order": 12,
"MinLength": 0,
"MaxLength": 128,
"Required": false,
"ValueSet": []
},
{
"Id": 6,
"Oid": "1.2.643.3.131.1.1",
"DisplayName": "ИНН",
"StringIdentifier": "INN",
"Order": 13,
"MinLength": 12,
"MaxLength": 12,
"Required": false,
"ValueSet": []
},
{
"Id": 7,
"Oid": "1.2.643.100.1",
"DisplayName": "ОГРН",
"StringIdentifier": "OGRN",
"Order": 16,
"MinLength": 13,
"MaxLength": 13,
"Required": false,
"ValueSet": []
},
{
"Id": 8,
"Oid": "1.2.643.100.5",
"DisplayName": "ОГРНИП",
"StringIdentifier": "OGRNIP",
"Order": 15,
"MinLength": 15,
"MaxLength": 15,
"Required": false,
"ValueSet": []
},
{
"Id": 9,
"Oid": "1.2.643.100.3",
"DisplayName": "СНИЛС",
"StringIdentifier": "SNILS",
"Order": 14,
"MinLength": 11,
"MaxLength": 11,
"Required": false,
"ValueSet": []
},
{
"Id": 10,
"Oid": "2.5.4.6",
"DisplayName": "Страна",
"StringIdentifier": "C",
"Order": 11,
"MinLength": 0,
"MaxLength": 2,
"Required": false,
"ValueSet": []
},
{
"Id": 11,
"Oid": "2.5.4.8",
"DisplayName": "Область",
"StringIdentifier": "S",
"Order": 10,
"MinLength": 0,
"MaxLength": 128,
"Required": false,
"ValueSet": []
},
{
"Id": 12,
"Oid": "2.5.4.7",
"DisplayName": "Город",
"StringIdentifier": "L",
"Order": 9,
"MinLength": 0,
"MaxLength": 128,
"Required": false,
"ValueSet": []
},
{
"Id": 13,
"Oid": "2.5.4.9",
"DisplayName": "Адрес",
"StringIdentifier": "Street",
"Order": 5,
"MinLength": 0,
"MaxLength": 30,
"Required": false,
"ValueSet": []
},
{
"Id": 14,
"Oid": "2.5.4.10",
"DisplayName": "Организация",
"StringIdentifier": "O",
"Order": 8,
"MinLength": 0,
"MaxLength": 64,
"Required": false,
"ValueSet": []
},
{
"Id": 15,
"Oid": "2.5.4.11",
"DisplayName": "Подразделение",
"StringIdentifier": "OU",
"Order": 7,
"MinLength": 0,
"MaxLength": 64,
"Required": false,
"ValueSet": []
},
{
"Id": 16,
"Oid": "2.5.4.12",
"DisplayName": "Должность",
"StringIdentifier": "T",
"Order": 4,
"MinLength": 0,
"MaxLength": 64,
"Required": false,
"ValueSet": []
}]
},
"AllowUserRegistration": true,
"IdentityProviders": [{
"Description": null,
"IssuerName": "realsts",
"DisplayName": null
},
{
"Description": null,
"IssuerName": "ADFS",
"DisplayName": null
},
{
"Description": null,
"IssuerName": "SampleSts",
"DisplayName": null
}],
"Groups": [{
"IdentityProviderName": "realsts",
"GroupList": ["Default",
"SampleGroup"]
}],
"CryptoProviders": [],
"MobileAuthSettings": null,
"AirKeyAuthSettings": null
}