symphony.bdk.core.service.user.user_util#

Module containing utility function to extract the tenant ID from a user ID. The user ID is a combination of a unique tenant ID, and a unique sub-tenant ID, combined into a number. The tenant ID is stored in the 27 highest bits (minus the sign bit which is unused so that all IDs remain a positive value) which allows for 134 million pods. This leaves 36 lowest bits for the user ID, which allows 68.7 billion users per tenant.

Functions

extract_tenant_id(user_id)

Extracts the tenant ID from a user ID.

Classes

NumberUtil(sizes)

Used to compute the segments bases in the input sizes

Segment(size, shift)

Helper class to initialize a Segment