community.general icon indicating copy to clipboard operation
community.general copied to clipboard

Add a module for managing Keycloak Users

Open drpdishant opened this issue 1 year ago • 2 comments

Summary

The user management module for Keycloak is missing, it would be a good feature to have. Following modules can be added for users:

  • [x] keycloak_user_info (To fetch details of one or all users in a realm)

  • [x] keycloak_user (to create, change,delete a user in a realm)

Issue Type

Feature Idea

Component Name

keycloak

Additional Information

Example:

- name: Get all users in a realm
  community.general.keycloak_user_info:
    realm: MyCustomRealm
    auth_keycloak_url: https://auth.example.com/auth
  delegate_to: localhost

- name: Get a Keycloak User Info by User Id
  community.general.keycloak_user_info:
    realm: MyCustomRealm
    userid: "677a27df-02e8-48e9-8f90-fa95caf64bd7" #UUID of the User
    auth_keycloak_url: https://auth.example.com/auth
  delegate_to: localhost

- name: Get a Keycloak User Info by User Name
  community.general.keycloak_user_info:
    realm: MyCustomRealm
    username: "[email protected]"
    auth_keycloak_url: https://auth.example.com/auth
  delegate_to: localhost

Code of Conduct

  • [X] I agree to follow the Ansible Code of Conduct

drpdishant avatar Aug 07 '22 20:08 drpdishant

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot avatar Aug 07 '22 20:08 ansibullbot

@felixfontein Please assign this issue to me as I am already creating the module.

drpdishant avatar Aug 07 '22 20:08 drpdishant