# “You do not have permission to access the requested page” error when accessing Kibana

**URL:** <https://discuss.elastic.co/t/you-do-not-have-permission-to-access-the-requested-page-error-when-accessing-kibana/285613>\
**Category:** Elastic Security\
**Tags:** elastic-stack-security, docker\
**Created:** [September 30, 2021, 4:10pm UTC](https://discuss.elastic.co/t/you-do-not-have-permission-to-access-the-requested-page-error-when-accessing-kibana/285613 "2021-09-30T16:10:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![muralikri](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@muralikri](https://discuss.elastic.co/u/muralikri)\
**Post date:** [September 30, 2021, 4:10pm UTC](https://discuss.elastic.co/t/you-do-not-have-permission-to-access-the-requested-page-error-when-accessing-kibana/285613/1 "2021-09-30T16:10:01Z")

</div>

Hi,

I am trying to configure SAML SSO in on premises Elasticsearch environment (kubernetes elasticseatrch & kibana) and getting "You do not have permission to access the requested page". have tried all settings and still no luck. even it is not triggered any logs in ES. Please help me am i missing anything in config file

Elasticsearch.yaml:  
xpack.security.authc.token.enabled: true  
xpack.security.authc.realms.saml.saml-azure-ad:  
order: 2  
attributes.principal: '[http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name](http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name)'  
attributes.groups: '[http://schemas.microsoft.com/ws/2008/06/identity/claims/groups](http://schemas.microsoft.com/ws/2008/06/identity/claims/groups)'  
idp.metadata.path: '[https://login.microsoftonline.com/{{changed}](https://login.microsoftonline.com/%7B%7Bchanged%7D)}/federationmetadata/2007-06/federationmetadata.xml?appid={{changed}}'  
idp.entity\_id: '[https://sts.windows.net/{{changed}](https://sts.windows.net/%7B%7Bchanged%7D)}/'  
sp.entity\_id: '[https://kibana.example.com](https://kibana.example.com)'  
sp.acs: '[https://kibana.example.com/api/security/v1/saml](https://kibana.example.com/api/security/v1/saml)'  
sp.logout: '[https://kibana.example.com/logout](https://kibana.example.com/logout)'

kibana.yaml:  
kibana.yml: |-  
server.host: 0.0.0.0  
Elasticsearch:  
hosts: ${ELASTICSEARCH\_HOSTS}  
username: ${ELASTICSEARCH\_USER}  
password: ${ELASTICSEARCH\_PASSWORD}  
Elasticsearch.ssl.certificateAuthorities: ["config/Elasticsearch-ca.pem"]  
xpack.encryptedSavedObjects.encryptionKey: {xxxxxx}  
xpack.reporting.encryptionKey: {xxxxxx}  
xpack.security.encryptionKey: {xxxxxx}  
xpack.security.authc.providers:  
saml.saml1:  
order: 0  
realm: "saml-azure-ad"  
description: "Log in with Microsoft 365"  
basic.basic1:  
order: 1  
server.xsrf.whitelist: ['/api/security/v1/saml']

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/c/6cd3cbfe010449aa6c19813b71291c44ab1ca960.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 28, 2021, 4:10pm UTC](https://discuss.elastic.co/t/you-do-not-have-permission-to-access-the-requested-page-error-when-accessing-kibana/285613/2 "2021-10-28T16:10:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
