in orchestration/strategies/base_agent_strategy.py [0:0]
def _generate_security_ids(self, client_principal):
"""
Generate security identifiers based on the client principal.
Parameters:
client_principal (dict): Information about the client principal, including the user ID
and group names.
Returns:
str: A string representing the security identifiers, combining the user ID and group names.
"""
security_ids = 'anonymous'
if client_principal is not None:
group_names = client_principal['group_names']
security_ids = f"{client_principal['id']}" + (f",{group_names}" if group_names else "")
return security_ids