Add ldap user to organisation using http api

I am using LDAP over grafana for authentication. When i am adding an LDAP user to an organisation using post call to “http://lurl/api/orgs/{org_ID}/users” with admin credentials it is woking fine. The user is added to organisation. But as soon as the user logs out and then logs in again he was removed from that organisation and I have to add him again. If anyone can enlighten me what is the issue with this approach or guide me some work around on adding ldap user to an organisation wihtout restarting the grafana server.

Thanks,

Hi,

It sounds like you’ll need to have a look at LDAP to Grafana org sync. With that you can map certain users to a specific organization and/or role in Grafana which will take effect when a user signs in.

Marcus