How-To: Assign Token to Workload
A User Access Token provides access permission for a specific user to a specific workload. Tokens can be assigned to a workload either during their creation or later if the token is unassigned. This guide explains how to assign a token to a model using the web console, focusing on assignment from the Workload's Details Management Screen
Via Token's Attributes Modification (Web Console or Python SDK)
Tokens can be assigned to models by modifying their attributes. This method allows you to assign tokens from the Tokens Page in the web console or through the Python SDK. For detailed instructions, see: [How-To: Modify Token's Parameters].
Via the Workload's Details Management Screen
Follow these steps to assign a token directly from the model's details screen:

1
4
# Assign Token to Model
import LatticaManagement
# Authenticate
lattica = LatticaManagement("your_license_from_lattica_console")
# Get a model_id and a token_id...
model_id = lattica.list_models()[0].model_id
token_id = lattica.list_tokens()[0].token_id
# Assign token to model
lattica.assign_token_to_model(token_id, model_id)Last updated
Was this helpful?