Hello everyone !
I would like to perform some API calls to specific tenant.
Is it possible to select the tenant in header parameter for example like search guard?
curl \
-u hr_employee:hr_employee \
-H "sgtenant: management" \
-H 'Content-Type: application/json' \
-H "kbn-xsrf: true" \
-XGET "http://localhost:5601/api/saved_objects"
Is there any header parameter in Open Distro that replaces the “sgtenant” one?
Thank you for reading me !
Thi
Not sure if you resolved this, but “securitytenant” is what I use as a header for API calls.
Cheers.
Hello @ash74268 !
Thank you for your answer, And no I didn’t resolve this…
So you are telling me I should use securitytenant?
curl \
-u hr_employee:hr_employee \
-H "securitytenant: management" \
-H 'Content-Type: application/json' \
-H "kbn-xsrf: true" \
-XGET "http://localhost:5601/api/saved_objects"
Thank you again !
Thi
yes, thats the correct header to use with opendistro security plugin. I have used it and works fine.
1 Like