module Keycloak::GroupClient

Direct including types

Defined in:

keycloak/client/group.cr

Instance Method Summary

Instance Method Detail

def add_user_to_group(*, user_id : String, group_id : String) #

[View source]
def create_group(user : Representation::Group, *, parent : String | Nil = nil) #

[View source]
def delete_group(id : String) #

[View source]
def get_group(id : String) : Representation::Group #

[View source]
def group_count : Int32 #

Returns the number of groups for the realm


[View source]
def group_members(id : String, *, brief : Bool | Nil = nil, first : Int32 | Nil = nil, max : Int32 | Nil = nil) : Array(Representation::User) #

Get groups members returns a stream of users, filtered according to query parameters

  • brief Boolean which defines whether brief representations are returned
  • first Pagination offset
  • max Maximum results size (defaults to 100)

[View source]
def groups(*, brief : Bool | Nil = nil, exact : Bool | Nil = nil, first : Int32 | Nil = nil, max : Int32 | Nil = nil, q : String | Nil = nil, search : String | Nil = nil) : Array(Representation::Group) #

Get group hierarchy.

  • brief Boolean which defines whether brief representations are returned
  • first Pagination offset
  • max Maximum results size (defaults to 100)
  • q A query to search for custom attributes, in the format 'key1:value2 key2:value2'
  • search A String contained in username, first or last name, or email

[View source]
def remove_user_from_group(*, user_id : String, group_id : String) #

[View source]
def user_group_count(id : String) : Int32 #

Returns the number of groups of the user


[View source]