How get the user that use CRM in my web site

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

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"

Similar Messages

  • How get the user initiador in gp?

    hi all
    How get the user initiator of a process GP with a Web Dynpro Callable Object?
    because with this code I get the current user...
    IWDClientUser wdUser = WDClientUser.getCurrentUser();
    IUser user = wdUser.getSAPUser();
    String userid = user.getUniqueID();
    thanks!

    Hi,
    processId is the design time template id of the process. This you can find in the instantiation tab while designing the process.
    Code for getting user context:
    IWDClientUser wdUser = WDClientUser.getCurrentUser();
                   IUser user = wdUser.getSAPUser();
                   IGPUserContext userContext = GPContextFactory.getContextManager()
                             .createUserContext(user);
                   IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
    Hope it helps.
    Regards,
    Srinivasan Subbiah

  • Why can I not get my user ID to "stick" when visiting web sites that I am registered with?

    Why can I not get my user ID to "stick" when visiting web sites that I am registered with?

    Look in settings, safari.  There are two setting that might help, depending on how the website wants to see you.  If they are using cookies, make sure your accept cookies switch is on.
    Then look at the autofill setting.  You can turn names and passwords on or off.

  • Is possible to save the user that uses the download action in an interactive report.

    Hi,
    In my application I want to save who is downloading the interactive reports information in any format, is it possible?
    Regards

    Hi Eva,
    As far as I know there is not an out of the box option that shows you the user that is downloading the interactive report. I guess you would have to write your own logic for that.
    You can create your own logging table and a dynamic action with
    1) a pl/sql procedure to insert the logging into the table, and
    2) submits the page with the appropriate download format, eg. f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION_ID.:CSV::::
    As trigger of the dynamic action you need to use either of the download buttons, so I'd suggest the jQuery selector "#apexir_dl*"
    Kind regards,
    Vincent

  • Can the WLPI be used for a perl web site

    We have a client, which has a perl(Apache/mod_perl) based web site. Cutomers submit orders on the web site and right now there is an order-processing system, but the client is looking for workflow/process product which will ease with all this order processing stuff like acknowledgement, approval, shipping, etc....So my question here is, can they use the WeBLogic Process Integrator for this purpose? The reason I am asking this is, looking at the WLPI docs, it looks like a Java/WebLogic only product and cannot be used for a perl web site.Thanks,Shireesh Thanneru

    Yes.
    However I would not recommend it, at least as your primary connection for the SmartTV.  Relying primarily on VZW data plans is a bad way to view video services such as Netflix at the moment.  It is very easy to chew through your plan with only a few videos depending on the resolution and a few other factors.  Not only that but a smart TV may be periodically checking the internet from time to time to download firmware updates or provide reporting stats to the manufacturer. 
    VZW Jetpacks continue to be a poor choice for home primary internet replacement.  The data plans that come from VZW and all other metered wireless providers are not friendly to this kind of internet traffic.  Letting your guard down for a moment could result in costly overages and once you accumulate them you will be liable to pay them.  A normal cable or DSL line with a high/unlimited cap would be more appropriate.
    If the Jetpack is a backup or temporary internet connection then go for it.  This is what a Jetpack is designed for, you can get by every now and then without too much risk.  Just make sure you are powering your Jetpack down as soon as you are done streaming and keep a close eye on your data plan before and after any major viewing. 

  • How can i get the user that has created a document

    I only need to know wich user has created a document(purchase order).
    For example, if user SALES1 creates a purchase order(100),in wich table/field is stored this information?(that tells me that user SALES1 has created purchase order 100).
    Thanks in advance!

    Hi
    If you look in the table of the documents there is a field called "UserSign". This user sign then matches with a column "usersign" in OUSR. In ousr it has the user names and all the other details for all the users.
    Hope this helps

  • Where is the user guide for Mavericks on apple Web Site?

    Hi,
    I'm looking for the user's guide preferably in French and as a «PDF» version. I can see ti for Leopard and Snow Leopard but not for Mavericks. Where should I look for it, I made many search and I couldn't find it?ng,
    Thank you for answering,
    Robert Marchand

    Thanks to all for answering to my post.
    I don't run Mac OS 10.9 on my Mac presently, I have a less recent version. If I had it, it wouldn't be a problem for me, after all theses years...
    I need a step by step guide so I can hand it to my students afterwards. Maverick's help do not work right now on our new iMac and the technician won't be able to fix that issue in the coming days: we start school next week... So a formal basic and step by step and user guide s would have been practicle for them. I know that there are many support file they can use directly on Apple Support Web pages but and all in one place document would have been better.
    I guess I'll have to use other source including various Apple support Web pages.
    Thank you for answering,
    Robert Marchand

  • How Get the users machine name

    I need to develop the intranet ticketing system on SharePoint. When user create the ticket I need to fetch their machine name as well. I have search that lot of solution given for ASP. Net with c#. But I have use JavaScript for the application. if any
    possibility to achieve this on JavaScript if it's not possible means what is the possible way to fetch user machine name in sharepoint
    Ravin Singh D

    Hi,
    the below link I got answer. Thanks sagar
    http://forums.codeguru.com/showthread.php?495819-Getting-windows-machine-name-via-the-browser
    <BODY>
    <Script Type = "text/JavaScript">
    try
    var ax = new ActiveXObject("WScript.Network");
    document.write('User: ' + ax.UserName + '<br />');
    document.write('Computer: ' + ax.ComputerName + '<br />');
    catch (e)
    document.write('Permission to access computer name is denied' + '<br />');
    </Script>
    </Body>
    Above code do that. But we need change browser security level to low. And it showing one warning also. I have tested with IE. other browser I need to test.
    Ravin Singh D

  • How can a user that uses a Remote Deskop Gateway reset their password if it expired?

    Right now when a Remote Desktop Gateway user's password expires, the gateway server does not prompt them to change it. Instead, it just doesn't allow them to connect to their machine.
    How can a remote user reset their expired password if they use a Remote Desktop Gateway to initiate the remote session?

    Hi,
    Just to extend on Armin's points,
    If VPN access would be available, using AD authentication would still not allow you access if the password needs changing. If using a VPN, you would not need a gateway as you will connect to
    the LAN in most instances.
    The RDWeb site would need to be used in conjunction with the gateway if you are not using a VPN. The RDWeb and Gateway Roles can be installed on the same server simplyfing the deployment.
    As Armin has suggested, i would recommend that you look at Password reset from the RDWeb interface or look at a identity management product Like FIM 2010 R2 which provided a Password reset
    feature that can be published exernally.
    Best regards,
    Ryan Mangan | Ryanmangansitblog.wordpress.com | Help keep the forums tidy, if this has helped please mark it as an answer

  • OAM In Custom Login Form: Is there a way to get the user that was blocked?

    Hi
    I'm creating a custom login form and I need to capture which user was blocked if I get an OAM-5 error code. There is no parameter that specifies which user was filled and I can't capture it before because the login page post directly to the OAM Server.

    Hi
    I'm creating a custom login form and I need to capture which user was blocked if I get an OAM-5 error code. There is no parameter that specifies which user was filled and I can't capture it before because the login page post directly to the OAM Server.

  • How to get the directory name using vnode address

    All,
    I am writing a C program and need info on the following:
    1. I have got the vnode address of the current directory. my question is "How to get the inode information (in particular, directory name) from the vnode address ?". What calls i need to use in order to get the info ?
    2. Any helpful web sites containing the above information ?
    Thanks in advance

    package x.y;
    import java.io.File;
    public class Test {
        public static void main(String[] args) {
            System.out.println(new File(Test.class.getResource("").getFile()).getAbsolutePath());
    }

  • How to find out the Transactions used per month & the USER who used that

    Hi,
    1)How to find out the Transactions used per month & the USER who used that?
    2)and can i get the above same for minimum 20 month?
    System : SAP- Enterprise Core Component.

    You can use my program...
    *& Report  Z_ABAP_TCODE_MONITOR
    *****&  Program Type          : Report                                 *
    *****&  Title                 : Z_ABAP_TCODE_MONITOR                   *
    *****&  Transaction code      : ZTCODE_USAGE                           *
    *****&  Developer name        : Shailendra Kolakaluri                  *
    *****&  Deveopment start date : 26 th Dec 2011                         *
    *****&  Development Package   : ZDEV                                   *
    *****&  Transport No          : DEVK906086                                       *
    *****&  Program Description   : This program is to display
    *List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    *& Modification history
    REPORT  Z_ABAP_TCODE_MONITOR.
    *& List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    TYPE-POOLS : slis.
    DATA: ind TYPE i,
          fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          layout TYPE slis_layout_alv,
          variant TYPE disvariant,
          events  TYPE slis_t_event WITH HEADER LINE,
          heading TYPE slis_t_listheader WITH HEADER LINE.
    *REPORT  z_report_usage.
    TYPES: BEGIN OF zusertcode,
      date   TYPE swncdatum,
      user   TYPE swncuname,
      mandt     TYPE swncmandt,
      tcode     TYPE swnctcode,
      report TYPE swncreportname,
      count     TYPE swncshcnt,
    END OF zusertcode.
    *data   : date type n.
    DATA: t_usertcode  TYPE swnc_t_aggusertcode,
          wa_usertcode TYPE swncaggusertcode,
          wa           TYPE zusertcode,
          t_ut         TYPE STANDARD TABLE OF zusertcode,
          wa_result    TYPE zusertcode,
          t_result     TYPE STANDARD TABLE OF zusertcode.
    PARAMETER: month TYPE dats DEFAULT sy-datum.
    *PARAMETER: date TYPE dats.
    *select-options : username for wa_usertcode-account.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM get_fieldcatalog.
      PERFORM set_layout.
    PERFORM get_event.
    PERFORM get_comment.
      PERFORM display_data.
    FORM get_data .
    *date = sy-datum - 2 .
    After start-of-selection add this line (parameter Month required 01 as day).
      concatenate month+0(6) '01' into month.
      CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
        EXPORTING
          component     = 'TOTAL'
          ASSIGNDSYS    = 'DEV'
          periodtype    = 'M'
          periodstrt    = month
        TABLES
          usertcode     = t_usertcode
        EXCEPTIONS
          no_data_found = 1
          OTHERS        = 2.
      wa-date  = month.
    *wa-date  = date.
      wa-mandt = sy-mandt.
    wa_usertcode-account = username.
      LOOP AT t_usertcode INTO wa_usertcode.
        wa-user = wa_usertcode-account.
        IF wa_usertcode-entry_id+72 = 'T'.
          wa-tcode  = wa_usertcode-entry_id.
          wa-report = space.
        ELSE.
          wa-tcode  = space.
          wa-report = wa_usertcode-entry_id.
        ENDIF.
        COLLECT wa INTO t_ut.
      ENDLOOP.
      SORT t_ut BY report ASCENDING.
      CLEAR: wa, wa_result.
    endform.
    FORM get_fieldcatalog .
    fcat-tabname     = 't_ut'.
    fcat-fieldname   = 'DATE'.
    fcat-seltext_l   = 'Date'.
    fcat-key         = 'X'.
    APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'MANDT'.
      fcat-seltext_l   = 'Client'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'USER'.
      fcat-seltext_l   = 'User Name'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'TCODE'.
      fcat-seltext_l   = 'Transaction Code'.
      fcat-key         = 'X'.
      APPEND fcat.
    ENDFORM.
    *&      Form  SET_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM set_layout .
      layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SET_LAYOUT
    *&      Form  GET_EVENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_event .
    events-name = slis_ev_top_of_page.
    events-form = 'TOP_OF_PAGE'.
    APPEND events.
    *ENDFORM.                    " GET_EVENT
    **&      Form  GET_COMMENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_comment .
    DATA: text(30).
    text = 'Billing Report'.
    heading-typ = 'H'.
    heading-info = text.
    APPEND heading.
    *ENDFORM.                    " GET_COMMENT
    **&      Form  top_of_page
          text
    -->  p1        text
    <--  p2        text
    *FORM top_of_page .
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         it_list_commentary       = heading[]
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    *ENDFORM.                    " top_of_page
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      sort t_ut[].
    DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = fcat[]
          i_save             = 'A'
          is_variant         = variant
          it_events          = events[]
        TABLES
          t_outtab           = t_ut
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " DISPLAY_DATA

  • How to retrieve the users that are following a document using JSOM / REST APIs in SharePoint 2013

    Hi everyone,
    Does anyone know how to use JSOM / REST APIs to retrieve the users that are following a specific document in SharePoint 2013? 
    Thanks in advance,
    Nam

    Hi Nam,
    Please use the sample code to get the followers for the document. Courtesy: Mokhtar
    Bepari 
    using Microsoft.SharePoint.Client;
    using Microsoft.SharePoint.Client.Social;
    ClientContext clientContext = new ClientContext("http://URL");
    SocialFollowingManager followingManager = new SocialFollowingManager(clientContext);
    SocialActorInfo actorInfo = new SocialActorInfo();
    actorInfo.ContentUri = "<documenturl>"; //set the document url.
    actorInfo.ActorType = SocialActorType.Document;
    //By using the GetFollowed method you can get the people who the current user is following.
    ClientResult < SocialActor[] > followedResult = followingManager.GetFollowed(SocialActorTypes.Users);
    //By using the GetFollowers() method you can get the people who are following the current user.
    ClientResult < SocialActor[] > followersResult = followingManager.GetFollowers();
    clientContext.ExecuteQuery();
    Once you get the resultset you can iterate like below:
    foreach(SocialActor actor in followedResult)
    string name = actor.Name;
    string imageURL = actor.ImageUri;
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How to get The users from a Collaborator that is type Group.

    Hello, I'm trying to get the users (and their emails) of a collaborator inside a Master Agreement that is type group.
    I've tried the following methods:
    1- Using a IBeanHomeLocator to get the GroupIBeanHomeIfc (with the static variable of sHOME_NAME) and then trying to get the Group with the DocumentId that the colaborator's method (getDocumentId()) returns and the GroupIBeanHome method findGroup().
    The result was null
    2 - Using exactly the same method as before, but instead of using the DocumentId, I did a query, in order to get the field USER_GROUP_OBJECT_ID,  to get the Id of the group.
    The result is still null.
    I'm not sure if there is a direct way to get it, or if i'm misusing the GroupIBeanHomeIfc.
    Thanks in advance!

    Hi Oscar,
    In the document collaborator class there is a method getCollaboratorType() which returns CollaboratorTypeEnumType and there are certain values assigned to them.
    user - A user collaborator
    group - A group collaborator
    contact - A user contact
    So, hashcode of 2 returns the group.
    Please have a look in to the below code.
    collaborators = doc.getCollaborators();
         if(collaborators.size() > 0)
            collabIter = collaborators.iterator();
              while (collabIter.hasNext())
                 member = collabIter.next();
                 collabType= member.getCollaboratorType();
                 hashValue= collabType.hashCode();
                    if(hashValue==2)
                              collabName= member.getDisplayName();
                              throw new ApplicationException("collabName:" +collabName);
    In the above code collabName returns the name of the group, with this you can search for the specified group using IbeanHomeLocator for group and then you can get the members in it and their mail Id's
    Hope it helps you and let me know if you need any assistance.
    Thanks,
    Raj.

  • How to get the user created at and modified at properties for a site collection using powershell

    Hi guys, I Know how to get the list of users of a site collection by Get-SPUser cmdlet but hte problem is that this cmdlet doesnt give me the user Created at and modifed at properties 
    can any one tell me how to get these values via powershell???? 
    ps: ignore the 2013 screenshot.. i just want a way to get those values .. if you provide me solution in either 2010 or 2013 , i will crack the other..
    plz guys help me ...

    Get the User Information list and then get the user from that list
    $web = Get-SPWeb "siteUrl"
    $userInfoList = $web.SiteUserInfoList
    $userItem = $userInfoList.Items[0]; #0 here is just for demonstration. You take the user you want here or loop through all users.
    $created = $userItem["Created"]
    $modified = $userItem["Modified"]

Maybe you are looking for