‎22-08-2023 09:25 AM
Hello,
We can create records with PersonSystem API. We can also create login records under PersonSystem. However, even though we include the AuthenticationMode information, we cannot send the LDAP Server information with the API. We cannot find the relevant object in the SDL schemas. All schematics have been reviewed. LDAP configuration of our HOPEX infrastructure has been made and it is working.
postman URL we use
{{server_url}}/HOPEXGraphQL/api/Data
The script we used
mutation{
createPersonSystem(personSystem:{
name: "ss",
Email: "ss@ss.com",
log in:{
action:ADD,
list:[{ name: "ss999", userCode: "ss999", statusLogin: Active, AuthenticationMode: LDAP }]
}
})
{
ID,
name,
email,
log in{
ID,
name,
User code,
statusLog in,
Authentication Mode
}
}
}
Output
{
"data": {
"createPersonSystem": {
"id": "vXNAgbruaDuI",
"name": "ss",
"email": "ss@ss.com",
"login": [
{
"id": "(XNAgbruaXuI",
"name": "ss999",
"usercode": "ss999",
"statusLogin": "Active",
"authenticationMode": "LDAP"
}
]
}
}
}
What we see as the solution,
- Can LDAP Server be selected by default every time a user session is created?
-How can we send LDAP Server Information under Login with API.
-Or how can it be done in a different way.
Thanks in advance for your help.
‎22-08-2023 10:02 AM
Hello,
The idea of LDAP integration is that user are created on the fly when they connect for the first time.
What use case ? or why do you want to create the user by REST API ?
I don't think out of the box the REST API based on GraphQL allows you to defined the LDAP information.