Directory Client

The Directory Client will interact with Directories for managing Directory Users' Devices. The client can be obtained from the appropriate factories.

Get Linked Devices

To obtain a list containing each Device linked to a Directory User, you will invoke the get_linked_devices method. The get_linked_devices method takes a single argument which is the Directory User ID.

Example:

identifier = "my-permanent-unique-user-identifier"
devices = directory_client.get_linked_devices(identifier)
for device in devices:
    print("Name:    %s" % device.name)
    print("Type:    %s" % device.type)
    print("Status:  %s" % device.status)

End A Users' Sessions

To clear all of a users' sessions for all services belonging to a Directory, you will invoke the end_all_service_sessions method. The end_all_service_sessions method takes a single argument which is the Directory User ID.

Example:

identifier = "my-permanent-unique-user-identifier"
directory_client.end_all_service_sessions(identifier)

User Contributed

LaunchKey links to user contributed code as a resource to its community. LaunchKey does not in any way guarantee or warrant the quality and security of these code bases. User contributed code is supported by the creators. If you do find a link from the site to user contributed code that is malicious or inappropriate in any way, please report that link to LaunchKey immediately and we will investigate the claim. Submit any issue to LaunchKey support at https://launchkey.com./support. ×