Hi everyone! I'm trying to use a GraphQL API for ...
# getting-started
w
Hi everyone! I'm trying to use a GraphQL API for adding users to group. Body of my mutation request:
mutation addGroupMembers {
addGroupMembers(
input: {
groupUrn: "urn:li:corpgroup:Admins",
userUrns: ["urn:li:corpuser:username"]
}
)
}
Response for it is following:
{
"data": {
"addGroupMembers": true
},
"extensions": {}
}
But in fact group in DataHub is not being changed Version of DataHub is 0.8.40 Also, there are no any error messages in both frontend or gms services. Can you please tell, what might be wrong in that case?
b
Hey! looking into this for you
have you tried adding group members through the UI? and if so do you have any issues there?
and when you say the group in datahub is not being changed, do you mean the group in the UI isn't changed? or can you see this change reflected in your document store?
w
Hey! Tried through UI, but there are no any changes too (neither in UI, nor in document store) Groups were fetched from LDAP
b
okay gotcha. are you able to see the changes reflected in your database (mysql)? I'm wondering if this is an issue with elasticsearch as we often go through that in order to get lists of data to show in the UI. Can you check to see if there are any error logs in elasticsearch?
w
let me check, uno momento
no, no any changes in logs too I want to mention, that this issue is connected with the request to GraphQL API only Request from UI for adding a user to group - works Request from GraphQL API for retrieving information about users - works too
b
oh wait so you can go through the UI and properly add a user to a group, but when you try to execute the graphql query above via command line it doesn't work?