We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Get Logged In Agent/User

Accepted answer
12
Views
2
Comments
edited Mar 24, 2017 9:45AM in Integrations and APIs 2 comments

Content

I am using CurAdminUser() to get Logged In user but the issue arises when I logIn using a different user. It keeps on return the Account ID for the previous user. This are the codes I am using , does anyone know any other way that i can get current user ID/Account ID who is loggedIn to the Instance.

 

Code Snippet

             public static ClientInfoHeader clientInfoHeader;
        public static RightNowSyncPortClient _client = null;
        static IGlobalContext _globalContext;
        public AgentID(IGlobalContext _global)
        {
            _globalContext = _global;
        }

        public static void AgentProfile()
        {
 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!