Common Scenarios
Multiple license users on the same device
6 min
overview when using user based licenses, a user should be assigned per device due to limitations in our database model for scenarios involving multiple users sharing devices, we recommend using a naming convention for hwids — for example, adding a suffix/prefix like station hwid user1 when a user operates locally, they can override the hwid with something like local hwid user1 when user has max activations = 1 this will lead to user using either station hwid user1 or local hwid user1 this ensures that each hwid is uniquely associated with a single license user, preventing conflicts when multiple users (with different emails) are using the same machine the current flow is flawed because it relies on the hardware id as the source of truth instead of the license user, which can lead to incorrect activation tracking and conflicts across shared devices if your business logic uses hardware id for additional check up be sure to add suffix/prefix always platform create a user based license and assign license users to the license sdk flow to support hardware id overwrites, the system must use the hardwareid algorithm in combination with the username in this example, we append the username as a suffix to the hardware id config >sethardwareid(gethardwareid() + " " + username); example scenario we enforce a rule where each license user is allowed only one activation , but a single device can host multiple license users simultaneously for example, user t\@t com activates their license on a local machine this should increment the license’s total activation count by 1 increment that license user’s total activation count by 1 assign the computed hardware id as local machine hwid t\@t com now, consider two users t\@t1 com and t\@t2 com who both use the same station machine under the same license for each of them, a unique hardware id will be generated station machine hwid t\@t1 com station machine hwid t\@t2 com this approach ensures that each license user has a unique hardware id , even if they share the same physical device as a result, license user based activation tracking remains unambiguous , avoiding any inflated or deflated total activation counts switching machines if user t\@t1 com wishes to move from the station machine to the local machine , they must deactivate the license on the station machine activate it on the local machine the same rule applies when switching in the opposite direction