diff --git a/public/app/features/admin/state/actions.ts b/public/app/features/admin/state/actions.ts index 1f302144e82..83456eaf12e 100644 --- a/public/app/features/admin/state/actions.ts +++ b/public/app/features/admin/state/actions.ts @@ -211,7 +211,7 @@ export function loadLdapState(): ThunkResult { export function loadUserMapping(username: string): ThunkResult { return async dispatch => { try { - const response = await getBackendSrv().get(`/api/admin/ldap/${username}`); + const response = await getBackendSrv().get(`/api/admin/ldap/${encodeURIComponent(username)}`); const { name, surname, email, login, isGrafanaAdmin, isDisabled, roles, teams } = response; const userInfo: LdapUser = { info: { name, surname, email, login },