locked
how get the user that use CRM in my web site RRS feed

  • Question

  • Hi all,

    I have a web app that connect to my CRM. I use C#.

    I connect to CRM with my credential because I'm admin in CRM.

    But my app is used from others CRM user and I need to know who is systemuser CRM that use app.

    I need the same of Xrm.Page.context used in js or the same context used in plugin, but I have the problem that I connect  to CRM with my user. So If I use WhoAmIRequest class I have my userid and not the userid of the user that use my web app.

    Is it possible know this? Do I change my login with user login in CRM?

    Thanks


    Thursday, April 9, 2015 9:13 AM

Answers

  • Hi,

         As you use system admin to connect to CRM, WhoAmIRequest does not return the user from website. You are correct. Change that so that it uses logged in user however be aware that means each user needs to be a valid CRM user else they will get not a valid user error.

    Hope this helps.
      
    -----------------------------------------------------------------------
    Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/

    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

     

    • Proposed as answer by Minal Dahiya Thursday, April 9, 2015 9:17 AM
    • Marked as answer by Samuel7CRM2011 Thursday, April 9, 2015 10:13 AM
    Thursday, April 9, 2015 9:17 AM

All replies

  • Hi,

         As you use system admin to connect to CRM, WhoAmIRequest does not return the user from website. You are correct. Change that so that it uses logged in user however be aware that means each user needs to be a valid CRM user else they will get not a valid user error.

    Hope this helps.
      
    -----------------------------------------------------------------------
    Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/

    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

     

    • Proposed as answer by Minal Dahiya Thursday, April 9, 2015 9:17 AM
    • Marked as answer by Samuel7CRM2011 Thursday, April 9, 2015 10:13 AM
    Thursday, April 9, 2015 9:17 AM
  • thank you, I try to different way
    Thursday, April 9, 2015 10:12 AM