api.users.credentials
Fetch all credential records for a user by their user_id
. This function returns both valid and expired credentials so to view only valid credentials check that the expired
property is False
first.
Arguments:
def api.users.credentials(
user_id: <str> = None, # User ID
):
Returns list
of dict
credential records.
Example:
credential_records = api.users.credentials(user_id="foo") # credential_records = [ <dict> ]