Back to bricks list
Introduction Version

UserService

Functions

ACTIVATE_USER - @classmethod
Parameters:
NameTypeDefault valueDescription
id_str
Return type:
User
CREATE_OR_UPDATE_USER_DTO - @classmethod
Parameters:
NameTypeDefault valueDescription
user_dtoUserFullDTO
Return type:
User
CREATE_SYSUSER - @classmethod

Create the system user

DEACTIVATE_USER - @classmethod
Parameters:
NameTypeDefault valueDescription
id_str
Return type:
User
GET_ALL_REAL_USERS - @classmethod
Return type:
List
GET_ALL_USERS - @classmethod
Return type:
List
GET_BY_ID_AND_CHECK - @classmethod
Parameters:
NameTypeDefault valueDescription
id_str
Return type:
User
GET_BY_ID_OR_NONE - @classmethod
Parameters:
NameTypeDefault valueDescription
id_str
Return type:
Optional
GET_SYSUSER - @classmethod
GET_USER_BY_EMAIL - @classmethod
Parameters:
NameTypeDefault valueDescription
emailstr
Return type:
gws_core.user.user.User | None
GET_USER_BY_ID - @classmethod
Parameters:
NameTypeDefault valueDescription
id_str
Return type:
gws_core.user.user.User | None
SET_USER_ACTIVE - @classmethod
Parameters:
NameTypeDefault valueDescription
id_str
is_activebool
Return type:
User
SMART_SEARCH_BY_NAME - @classmethod
Parameters:
NameTypeDefault valueDescription
namestr
pageint 0
number_of_items_per_pageint 20
Return type:
Paginator
SYNCHRONIZE_ALL_SPACE_USERS - @classmethod
USER_EXISTS - @classmethod
Parameters:
NameTypeDefault valueDescription
id_str
Return type:
bool