Get asset_id / user_id of the current logged in user with JS API?


(Shakil) #1

I’m new to CMS and Squiz Matrix. How can I retrieve the user/asset id of the user currently logged in with js api or some other way I can pass to js api? I’m trying to retrieve the list of user groups that the current logged in user is associated to with getRoles().


(Bart Banda) #2

If you simply print %globals_user_assetid% in a Standard Page or a Paint Layout Type Format, you should be able to get the current logged in user’s asset ID.