Skip to content

Commit bd701c4

Browse files
authored
remove removeFromDomain action
removeFromDomain is deprecated and throws errors
1 parent 9fce52f commit bd701c4

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

umapi_client/functional.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -278,18 +278,6 @@ def remove_from_organization(self, delete_account=False):
278278
self.append(removeFromOrg={"deleteAccount": True if delete_account else False})
279279
return None
280280

281-
def delete_account(self):
282-
"""
283-
Delete a user's account.
284-
Deleting the user's account can only be done if the user's domain is controlled by the authorized organization,
285-
and removing the account will also remove the user from all organizations with access to that domain.
286-
:return: None, because you cannot follow this command with another.
287-
"""
288-
if self.id_type == IdentityTypes.adobeID:
289-
raise ArgumentError("You cannot delete an Adobe ID account.")
290-
self.append(removeFromDomain={})
291-
return None
292-
293281

294282
class UsersQuery(QueryMultiple):
295283
"""

0 commit comments

Comments
 (0)