25. One Identity SOAP

6 октября 2020 г.

11:32

https://support.oneidentity.com/technical-documents/identity-manager/8.0/configuration-guide/117

https://t-oneim-4.domain/SoapService/Q1IMService.asmx?WSDL - описание (wsdl)

https://t-oneim-4.domain/SoapService/Q1IMService.asmx - адрес для запросов SOAP

Если Postman ругается - надо в заголовках прописать Content-Type text/xml

CreateSingle Object

\<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.quest.com/webservices/">

\<soapenv:Header>

\<web:LoginInformation>

\<!--Optional:-->

\<web:AuthString>Module=DialogUser;user=[REDACTED_USER];Password=[REDACTED]</web:AuthString>

\</web:LoginInformation>

\</soapenv:Header>

\<soapenv:Body>

\<web:CreateSingleObject>

\<!--Optional:-->

\<web:objectType>Person\</web:objectType>

\<!--Optional:-->

\<web:newValues>

\<!--Zero or more repetitions:-->

\<web:KeyValuePair>

\<!--Optional:-->

\<web:Key>FirstName\</web:Key>

\<!--Optional:-->

\<web:Value>User1\</web:Value>

\</web:KeyValuePair>

\<web:KeyValuePair>

\<!--Optional:-->

\<web:Key>LastName\</web:Key>

\<!--Optional:-->

\<web:Value>Test\</web:Value>

\</web:KeyValuePair>

\</web:newValues>

\</web:CreateSingleObject>

\</soapenv:Body>

\</soapenv:Envelope>


GetSingleObject

\<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.quest.com/webservices/">

\<soapenv:Header>

\<web:LoginInformation>

\<!--Optional:-->

\<web:AuthString>Module=DialogUser;user=[REDACTED_USER];Password=[REDACTED]</web:AuthString>

\</web:LoginInformation>

\</soapenv:Header>

\<soapenv:Body>

\<web:GetSingleObject>

\<!--Optional:-->

\<web:objectType>Person\</web:objectType>

\<!--Optional:-->

\<web:pkName>CentralAccount\</web:pkName>

\<!--Optional:-->

\<web:pkValue>alexb\</web:pkValue>

\<!--Optional:-->

\<web:columnNames>

\<!--Zero or more repetitions:-->

\<web:string>UID_Department\</web:string>

\</web:columnNames>

\</web:GetSingleObject>

\</soapenv:Body>

\</soapenv:Envelope>