如何在 Tridion 中获取当前登录用户的用户 ID? [英] How to get the user Id of the currently logged user in Tridion?

查看:44
本文介绍了如何在 Tridion 中获取当前登录用户的用户 ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Tridion 中实现了功能区工具栏按钮.作为其中的一部分,我需要遍历一些需要有效会话的组件.

I implemented a Ribbon tool bar button in the Tridion. As part of that I need to loop through the some components, which requires a valid session.

要在 Tridion 中创建会话,我需要一个用户 ID.如何获取当前用户的用户 ID(windows 用户 ID)?

To create a session in the Tridion I require a User Id. How to get the User Id of the current user(windows User Id)?

下面的命令会帮助我们获取用户信息吗?如果是这样,请告诉我命令的用法.

Will the following command help us to get the user info? If so please let me know the usage of the command.

getJsonUserSettings();

提前致谢.早日回应表示赞赏.

Thanks in advance. Early response is appreciated.

推荐答案

尝试这种方式获取用户 ID:

Try this way to get the User ID:

Tridion.UI.UserSettings.getJsonUserSettings(true).User["@ID"]

这篇关于如何在 Tridion 中获取当前登录用户的用户 ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆