catalog_user.

put_declarative_users_user_groups

put_declarative_users_user_groups(users_user_groups: CatalogDeclarativeUsersUserGroups)

Sets all users and user groups.

Parameters

nametypedescription
usersCatalogDeclarativeUsersUserGroupsDeclarative users and user groups object.

Returns

None

Example

# Load users and user groups from directory
users_and_user_groups = sdk.catalog_user.load_declarative_users_user_groups(layout_root_pat =Path.cwd())

# Do changes...
# users_and_user_groups.users.(...)

# Put on server
sdk.catalog_user.put_declarative_users_user_groups(users_and_user_groups)