add lldap graphql query

This commit is contained in:
vincent 2023-11-17 20:04:04 +01:00
parent dc5be4433c
commit 32f0d93194

View File

@ -0,0 +1,61 @@
# LLDAP Graphql query
URL: /api/graphql/playground
set HTTP HEADER
{ "Authorization": "Bearer token"}
## Get User
```Graphql
{
user(userId: "admin"){
id
attributes {name,value}
groups{id}
}
}
```
## updateUserAttribute
```Graphql
mutation { updateUser(
user:{
id:"admin"
insertAttributes:{
name:"toto"
value:"test"
}
}
){
ok
}
}
```
## add User attribute
```Graphql
mutation { addUserAttribute(
name:"toto"
attributeType:STRING
isList:true
isVisible:true
isEditable:true){
ok
}
}
```
## delete user attribute
```graphql
mutation {
deleteUserAttribute(name: "toto") {
ok
}
}
```