umapi-client v3.0
Changes in Version 3
This is a major release and contains many compatibility-breaking changes. Chief
among these is an ovehaul of the auth layer and the the introduction of the
OAuthS2S
auth class which authenticates UMAPI clients using
Server-to-Server
authentication. JWT-based authentication functionality is deprecated.
Refer to the user guide for details:
https://adobe-apiplatform.github.io/umapi-client.py/v3/
Summary of Changes
- Authentication Interface
- New
AuthBase
to cover basic auth functionality - Old JWT stuff rolled into single
JWTAuth
class - New
OAuthS2S
class representing new Server-to-Server authentication method
- New
- Connection Interface
- Removed
auth_dict
functionality AuthBase
-derived object must be passed toConnection
constructor via
auth
parameter- Removed
ims_host
andims_endpoint_jwt
- these areAuthBase
attributes user_management_endpoint
renamed toendpoint
- Removed
logger
param - Changes to timeout and retry constructor params
- Renamed
retry_max_attempts
tomax_retries
- Removed
retry_first_delay
- Removed
retry_random_delay
timeout_seconds
renamed totimeout
- Renamed
- Removal of "throttling" params
throttle_actions
throttle_commands
throttle_groups
- Removed
- Removed Deprecated Enums
GroupTypes
RoleTypes
- Enum Naming Tweaks
IdentityTypes
->IdentityType
IfAlreadyExistsOptions
->IfAlreadyExistsOption
UserAction
Changes- Constructor Updates
- Replaced
email
andusername
params withuser
param that models the
user
field in a UMAPI action command object. This can be username or
email address depending on context. - Removed
id_type
field. Identity type is only needed when creating a new
user. - Refactor some validation to
create()
- Replaced
create()
Updatesemail
is now mandatory- Add
id_type
parameter - Perform some validation that was done in the constructor
update()
Updates- Country code is not a valid user update parameter
add_to_groups()
Updates- It isn't possible to assign a user to all group
- Group type is deprecated
remove_from_groups()
Updates- Group type is deprecated
add_role()
andremove_role()
were removed because role-based
functionality is deprecated in the API- Country code removed from
update()
because UMAPI does not support
country code updates
- Constructor Updates
UserQuery
Updates- Change
email
param in constructor touser_string
to reflect UMAPI
terminology. Adddomain
parameter which is supported by UMAPI.
- Change
UsersQuery
Updates- Remove
identity_type
parameter from constructor. The UMAPI has never
supported filtering users by identity type.
- Remove
- Rename
UserGroupAction
toGroupAction
GroupAction
Changesproducts
paramter inadd_to_products()
andremove_from_products()
is
mandatory- It isn't possible to add all products to a group or remove all (without
enumerating every product profile inproducts
) users
parameter inadd_users()
andremove_users()
is mandatory
UserGroupsQuery
class removed because theuser-group
UMAPI endpoint does
not exist- Deleted
legacy.py