Skip to content

Commit 0a8d9b4

Browse files
[API] Updates security.get_user
New Parameter: with_profile_uid (Boolean) flag to retrieve profile uid (if exists) associated to the user Co-authored-by: Fernando Briano <[email protected]>
1 parent 7201956 commit 0a8d9b4

File tree

1 file changed

+2
-1
lines changed
  • elasticsearch-api/lib/elasticsearch/api/actions/security

1 file changed

+2
-1
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Actions
2525
# Retrieves information about users in the native realm and built-in users.
2626
#
2727
# @option arguments [List] :username A comma-separated list of usernames
28+
# @option arguments [Boolean] :with_profile_uid flag to retrieve profile uid (if exists) associated to the user
2829
# @option arguments [Hash] :headers Custom HTTP headers
2930
#
3031
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html
@@ -43,7 +44,7 @@ def get_user(arguments = {})
4344
else
4445
"_security/user"
4546
end
46-
params = {}
47+
params = Utils.process_params(arguments)
4748

4849
if Array(arguments[:ignore]).include?(404)
4950
Utils.__rescue_from_not_found {

0 commit comments

Comments
 (0)