How to update user properties using CSOM

Hello All ,
Is it possible to update a SharePoint user properties (like email, title, etc) using CSOM API? In the User class (Microsoft.SharePoint.Client.User) i saw properties like Email, Title are possible to get and set. I tried updating these properties through code
like below, but it is not getting updated in SharePoint. Is there any alternative way?
        String updateUser= "john alex";
            User user1 = web.EnsureUser(updateUser);
            user1.Email = "[email protected]";
            clientContext.Load(user1);
            clientContext.ExecuteQuery();
Regards
Shahabas

You are not calling the update on the user object. Here is an example:
String updateUser= "john alex";
User user1 = web.EnsureUser(updateUser);
user1.Email = "[email protected]";
user1.Update();
clientContext.Load(user1);
clientContext.ExecuteQuery();
Nadeem Yousuf

Similar Messages

  • How to update weblogic.properties in order to support English & Chinese

    <URGENT PROBLEM>
    hi,
    how to update weblogic.properties in order to support English & Chinese
    version in a sing weblogic server?
    Thanks in advance
    <URGENT PROBLEM>

    If you are using JSP as your mechanism for content display, you should use
    the contentType parameter to specify the character and coding of the JSP
    page any character encoding of the resulting stream. So far, we have not
    done a good job of documenting how to produce localized content in JSP. I
    have filed an issue for the documentation folks to work on it. For now,
    take a look at section 2.7.4 of the JSP specification version 1.1.
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    fxy <[email protected]> wrote in message
    news:8ffr11$59d$[email protected]..
    <URGENT PROBLEM>
    hi,
    how to update weblogic.properties in order to support English & Chinese
    version in a sing weblogic server?
    Thanks in advance
    <URGENT PROBLEM>

  • How to Update a Row using ADF

    Hi every one
    Can any one help me out, How to Update a Row using ADF.
    Thanks in advance

    In addition to Clear to my question
    By Using ADF BC How can I update a record in a database.
    I have VO and EO associated with a table.
    How can I update a record using ADF BC
    Message was edited by:
    user616296

  • How to update flex to use air 1.5.1

    How to update Flex to use air 1.5.1?
    The last Nightly Build (3.4.0.5042) release today has the
    "old" 1.5 version of air sdk.
    Thanks

    Currently, you have to overlay the AIR 1.5.1 SDK on top of
    your Flex SDK. There are instructions in the AIR 1.5.1 release
    notes:
    http://www.adobe.com/support/documentation/en/air/1_5_1/releasenotes_developers.html#sdk
    The AIR 1.5.1 SDK is available here:
    http://www.adobe.com/products/air/tools/sdk/

  • [HELP] How to records user who use SQLPlus or SQL editor?

    Dear Gurus,
    Is onyone know how to record user who use SQLplus or any SQL editor?
    for instance...
    user1 using SQLplus on monday august 9.30.21 PM...and I have table which record this for audit user.
    Or..
    Can I block user who connect to oracle using SQLPlus?
    If anyone know how to do this..please inform me...
    Thanks and Regards
    Erie

    You can enable Auditing (AUDIT_TRAIL) and audit at the Session Level to record Logon and Log off of a required user. This can be enabled to be recorded in the audit table or operation system file. You can also audit user statements etc.
    For example, to enable auditing connect for user UGONIC
    SQL>audit connect by UGONIC;
    TO disable it
    SQL>noaudit connect by UGONIC;
    Check in the SQL Reference for the AUDIT statement and requirements.
    If you do not want the user to connect at all via SQL*Plus, you can use PRODUCT_USER_PROFILE to disable a users access to SQL*Plus or at the lower level, disable specified SQL*Plus and SQL commands for the user. You need to run the PUPBLD.SQL script as system user (if not run yet) and add records to it as required.
    Example: After running PUPBLD.SQL. This entry stops the user UGONIC from using the drop command at the backend in SQL*Plus.
    INSERT into product_user_profile (product,userid,attribute,char_value,date_value)
    values('SQL*Plus','UGONIC','DROP','DISABLED',NULL);
    Note that if a user is already connected by the profile entry, it is not activated on that session, but on subsequent logons. Again read the requied security documentations for this.
    For both auditing, you need to set the required database intialisation parameters and know where to get the audit records (in tables, views or OS file). For instance, when using tables, you maintain and query tables like audit$ to view the logs. When using OS type logging, it is recorded on the path specified in the AUDIT_FILE_DEST init parameter (In Windows, it is logged in the Windows Event and you can view it from the event viewer).

  • How to update the ztable using screen.

    hi experts,
    i have one ztable with 8 fields
    and i created one screen with 8 fields
    how to update the ztable using this screen menas when i press the some push button in my screen the table should update.
    Devi

    hi
    check the link shown below
    Coding & screen shots of how to update a database table from screen(Module poool)
    http://www.scribd.com/doc/15628693/moduleprog090311165111phpapp011
    in the attachment u will find
    data  : begin of i_ysrtmm occurs 0,
            sno type ysrtmm-sno,
            sname type ysrtmm-sname,
            scity type ysrtmm-scity,
            sedu type ysrtmm-sedu,
            spercent type ysrtmm-spercent,
            select(1),
            end of i_ysrtmm.
    in the SE51 click on layout & in that menu goto - secwindow- enter the internal table i_ysrtmm
    and click on get from program.u will get all the fields of the internal table select all of them except
    SELECT  field  and then drag and drop on table control . double click on the table control u see the attributes screen there in the w/colselect enter i_ysrtmm-select for tab selection of table control.
    Regards

  • How to update the Ztable using modulepool Tablecontrol...

    Hi All,
    could anyone help me how to update the Ztable using modulepool Tablecontrol...
    if it is possible give me a example with code..
    Many thanks in advance...!!
    Rajesh

    Hi,
    For that pls refer to the link:
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac3735c111d1829f0000e829fbfe/frameset.htm
    Also refer the sample program:
    RSDEMO02
    Then for updating:
    modify the internal table(which u used to populate the tabcntrl) from the table control.
    Then update database table like:
    update dbtab from table itab.
    Regards,
    Renjith Michael.

  • How to update zfields by using BAPI_REQUISITION_CHANGE for purchase requisi

    Hi Experts,
    There is a requirement to create a zfield in purchase requisition and i have appended zfileds in EBAN table.
    How to update these zfields by using  BAPI_REQUISITION_CHANGE, the requisition_items_new contain my zfileds and the lates values. but after executing this fields are not updated in EBAN table.
    If i changed any quantity or any other fields, they are updated in successfully.
    Please help to update the zfileds in Purchase requitiion.
    Best Regards
    Chaitanya

    Hi,
    Refer the following SAP notes.
    1. Note 485557 - BAPI_REQUISITION_CREATE: 'EXTENSIONIN' customer enhancements
    2. Note 584902 - BAPI_REQUISITION_CHANGE: ExtensionIn not connected
    3. Note 792132 - EBAN, EBKN: user-defined fields are not filled
    Regards,
    Harish

  • Tutorial on how to update list items using ListData.svc

    Can you please point me to a tutorial which shows how to update a list item using listdata.svc and C#?
    Sorry if this is FAQ.
    I have found articles on read list... but I haven't found anything on update a list item.
    val it: unit=()

    when i try this I get an error 500
    I created an ASP.NET web application that allows the user to modify data that is stored in SharePoint I rather not go into the reasons why this application was created but focus more on why doesn't the listdata.svc allow me to update a task item that was
    created by a workflow collect data from user action.
    1. The workflow creates the item.
    I collect the item and update the item using the below code. This is not an OOTB approval workflow that is just the name I used. When I get to save changes I received the following error code.
    Dim getApprovalItem As ExpenseApprovalRuleBasedTasksItem = spContext.ExpenseApprovalRuleBasedTasks.Where(Function(i) i.Id = Pam.ApprovalItemID).FirstOrDefault
    If String.IsNullOrEmpty(getApprovalItem.AuditorApprovalValue) Then
    getApprovalItem.AuditingComments = approvalComments
    Select Case approvalDecision
    Case "Approved"
    getApprovalItem.AuditorApproval = ExpenseApprovalRuleBasedTasksAuditorApprovalValue.CreateExpenseApprovalRuleBasedTasksAuditorApprovalValue("Approved")
    getApprovalItem.AuditorApprovalValue = "Approved"
    Case "Rejected"
    getApprovalItem.AuditorApproval = ExpenseApprovalRuleBasedTasksAuditorApprovalValue.CreateExpenseApprovalRuleBasedTasksAuditorApprovalValue("Rejected")
    getApprovalItem.AuditorApprovalValue = "Rejected"
    End Select
    getApprovalItem.Outcome = "Completed"
    getApprovalItem.Status = ExpenseApprovalRuleBasedTasksStatusValue.CreateExpenseApprovalRuleBasedTasksStatusValue("Completed")
    getApprovalItem.StatusValue = "Completed"
    getApprovalItem.Complete = True
    spContext.UpdateObject(getApprovalItem)
    spContext.SaveChanges()
    End If

  • How to force user to use program?

    I have designed a java app that starts as soon as you log on to a Windows NT client. The application asks the user for a project number. After the user types in a valid project number, the application hides. When the user logs off, or does a shutdown, the application writes info to a file about about how long this user used the PC, and for which project number he or she did that. When a user does not enter a project number and tries to close the application, the system will automatically shutdown. I can hide the windows taskbar by using a big size for the application frame.
    My question is, how can I make sure that the user does not simply ignores the program by using the windows key, or ctrl-Esc to launch the windows start menu? Someone out there who has an idea? Thanks in advance!

    To disable all Windows keyboard shortcut keys, save the following text in a REGINI script called Disable_wins.ini. Run
    the script from the Windows NT command prompt. For example, from the C:\users\default> prompt, type regini
    disable_wins.ini. Restart the computer to make the changes take effect.
    [REGINI SCRIPT STARTS HERE:]
    ; This mapping is used to turn both Windows keys off
    \Registry\Machine\SYSTEM\CurrentControlSet\Control\Keyboard Layout
    Scancode Map = REG_BINARY 24 \
    0x00000000 0x00000000 3 \
    0xE05B0000 0xE05C0000 \
    0x0
    ; Here is an explanation of all the values:
    ; 24 Size of the scancode map including header, in bytes
    ; 0x00000000 Header : Version
    ; 0x00000000 : Flags
    ; 3 : Number of entries (includes null terminator)
    ; 0xE05B0000 left Windows -> nul (0xE0 0x5b -> 0x00)
    ; 0xE05C0000 right Windows -> nul (0xE0 0x5c -> 0x00)
    ; 0x00000000 null terminator
    [REGINI SCRIPT ENDS HERE]

  • How to Update  crmd_customer_h TABLE Using CRMV_EVENT Through Funtion Module

    Hi
    How we can update customer_h table using the CRMV_EVENT Where i implemented logic below in the Funtion Module.
    data:     lt_doc_flow          TYPE crmt_doc_flow_wrkt,
              lw_cust_h_com        TYPE crmt_customer_h_com,
              lw_input_field_names TYPE crmt_input_field_names,
              lt_input_field_names TYPE crmt_input_field_names_tab,
              lt_objects_to_save TYPE crmt_object_guid_tab,
              lw_guid TYPE CRMT_OBJECT_GUID.
    DATA : lv_process_type TYPE crmt_process_type.
    data: wa_doc_flow type CRMT_DOC_FLOW_WRK.
    data: wa_customer_h type crmd_customer_h.
    *  Function module for retriving the Process type.
      CALL FUNCTION 'CRM_ORDERADM_H_READ_OW'
        EXPORTING
          iv_orderadm_h_guid     = iv_header_guid
        IMPORTING
          ev_process_type        = lv_process_type
        EXCEPTIONS
          admin_header_not_found = 1
          OTHERS                 = 2.
    if lv_process_type eq 'ZG01'.
    CALL FUNCTION 'CRM_DOC_FLOW_READ_OB'
    EXPORTING
       IV_HEADER_GUID                 = iv_header_guid
    IMPORTING
       ET_DOC_FLOW_WRK                = lt_doc_flow.
    read table lt_doc_flow with key objtype_a = 'BUS2000116' INTO wa_doc_flow. "gc_object_type-service.
                if sy-subrc eq 0.                    "set flag for service order
                lw_cust_h_com-ref_guid       =  wa_doc_flow-objkey_a.
                lw_cust_h_com-ZZTRAIL_FLAG   = 'X'.
                 lw_cust_h_com-mode           = 'A'.
                lw_cust_h_com-ref_handle     = '0000000001'.
                lw_guid = wa_doc_flow-objkey_a.
                INSERT lw_guid INTO TABLE lt_objects_to_save.
         endif.
                  lw_input_field_names-fieldname = 'REF_GUID'.
                lw_input_field_names-fieldname = 'ZZTRAIL_FLAG'.
              lw_input_field_names-changeable = ' '.
               INSERT lw_input_field_names INTO TABLE lt_input_field_names.
    Maintain Customer H
             CALL FUNCTION 'CRM_CUSTOMER_H_MAINTAIN_OW'
                  EXPORTING
                    is_customer_h_com    = lw_cust_h_com
                  CHANGING
                    ct_input_field_names = lt_input_field_names
                  EXCEPTIONS
                    header_change_error  = 1
                    header_create_error  = 2
                   error_occurred       = 3.
    ENDIF.
    *endif.
    *Clearing local variables
      clear: lv_process_type,
             lw_cust_h_com,
             lw_input_field_names.
    *Free internal tables
      free: lt_doc_flow,
            lt_input_field_names.

    Hi Faisal
    I think your not clear with what i am saying anyhow i will again explain you my requirement
    As per my requirement
    1)in the service order search report i need to add a field called "Has trail order with No Follow up" with values "Yes" & "Blank"
    For above Field i added  using the structure CRMST_QUERY_SRVO_BTIL and through configuration i am able to display the field in webui as per (Attachement Pic 1)
    2)When i  search with search criteria as  "Has trail order with No Follow up" with  "Yes"
    Then in result list i need to show the service order those having follow up as trail orders(sales order) only.if for  next document trail order  having any follow up then those service orders dont want to show in result list.
    For above requirement i implemented F.M using CRMV_EVENT & I configured for BUS2000115 And BEFORE_SAVE The Order
    The FM Will get trigger when i save the service order and for that service order if create any follow up and try to save the trail order then This FM Will trigger and in this i am doing validations.
    3)Add one AET Trail Flag field is added under CUSTOMER_H Table.
    4)in the FM I am validating for if the trail order having the preceding document as service order then i need to make flag as "X" For that service order in customer_h
    if suppose when i delete trail order from the service order then that flag must need to be "unset" from the CUSTOMER_H.
    Why bcoz we are doing above process is do show records in result list based on Flag values
    these flag checks are validating in the BADI Which we implemented for search logic.
    Please refer below Login for my requirement:-
    Proposal to have a custom “flag” field (background at table level,
         crmd_customer_h) linked to service order which gets flagged whenever at
         least one Trial order is created and saved from the Service Order.
    The flag value should be cleared when all the trial orders created and
    saved as follow up transactions are deleted from the system.
    Similarly for Trial Orders will use the same custom “flag” field
         which gets activated when at least one follow up is created and saved from Trial Order.
    The flag value should be cleared when all the follow up transactions from
    the Trial Order are deleted from the system.
    When the above search criteria “Has Trial order with no follow up”
         “is” “Yes” is applied then the logic derives all the service
         orders which satisfy additional search criteria applied in the search and
         for these Service orders checks if the custom flag field is checked to
         derive all Service orders which have Trial order. The custom flag values
         values are derived from crmd_customer_h table in CRM.
    4 )Further for all the Trial Orders determined in Step 3
    check if the Trial Order has a follow up by checking if the custom flag field
    is checked. The custom flag values are derived from crmd_customer_h table in
    CRM.
    5) If step 4 is not met populate the preceding Service
    Orders in the Result list

  • Form with webutil functions. How identify if user is using native internet

    Hello,
    I have one form with some webutil functions. How can i identify if a user is using the form with native internet explorer?
    If a user with jinitiator use the forms, its ok, but when a user use native internet explorer, he gets error orcle.forms.webutil.fileTransfer bean not found. WEBUTIL_FILE_TRANSFER.getMaxTransfer will not work.
    When the user use internet explorer native, I want disable the webutil function before generate a file on the application server and then download to a client machine.
    Im using Forms10g and Forms10gR2.
    Thanks

    do you have two different config-sections for the two modes?
    If so, you could either place a different value for each one in the otherparams-tag and read that at runtime, or use a different env-fiel and set some variable with different values for each config in there and read it via TOOL_ENV.

  • How to update users' Trusted Locations settings on open?

    I am looking for a function that will trigger on opening of Access 2010 that will automatically update users' Trusted Locations to include the local network.  Only authenticated users have access to the drive, so there should be no security
    issues in making it a trusted location for anyone who opens the application. 
    It would be too time consuming to explain to 100+ how to add the network to their trusted locations, so I am looking for something to bypass this. 

    I put the function into the AutoExec macro, but when the database is not in a trusted location yet, I get a macro error number 2001.  After pressing Stop All Macros, then pressing Enable All Content, the function runs and properly adds the location. 
    Obviously the error occurs because the location is not trusted yet, so how do I get it to trust a macro beforehand?
    <v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe"
    stroked="f"><v:stroke joinstyle="miter"><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"><v:f eqn="sum @0 1 0"><v:f eqn="sum 0 0 @1"><v:f eqn="prod @2 1 2"><v:f
    eqn="prod @3 21600 pixelWidth"><v:f eqn="prod @3 21600 pixelHeight"><v:f eqn="sum @0 0 1"><v:f eqn="prod @6 1 2"><v:f eqn="prod @7 21600 pixelWidth"><v:f eqn="sum @8 21600
    0"><v:f eqn="prod @7 21600 pixelHeight"><v:f eqn="sum @10 21600 0"></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas>
    <v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f"><o:lock aspectratio="t" v:ext="edit"></o:lock></v:path></v:stroke></v:shapetype><v:shape alt=""
    id="Picture_x0020_1" o:spid="_x0000_i1025" style="width:372.75pt;height:229.5pt;" type="#_x0000_t75"><v:imagedata o:href="cid:[email protected]" src="file:///C:\Users\ropelen\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"></v:imagedata></v:shape>

  • How to update user status in the QM notifications

    Dear Experts,
    PLz tell  how to update/change user status in the QM notifications..I have maintained the user status profile and assigned the same to the notification type,but user status are not getting updated in the notifications..
    Thanks in advance
    Ankush

    Hi,
    SPRO - Quality Management - Quality Notifications - Overview of Notification Type.
    In that select the concerned notification and click on the status profile and there you can assign the status profile for the concerned notification Type.
    There will be two types,
    status profile for notifications and status profile for tasks, assign as per the requirement.
    Regards,
    Naveen.

  • How to update VBAP-KBMENG using BAPI_QUOTATION_CREATEFROMDATA?

    Hello All,
    Using BAPI_QUOTATION_CREATEFROMDATA I can easily create quotation with quantity VBAP-KWMENG(Cumulative order quantity).
    But how to update VBAP-KBMENG(Cumulative confirmed quantity in sales unit)?

    Dear megha,
                  Check the  BAPIITEMEX-REQ_QTY in ORDER_ITEMS_OUT from BAPI_QUOTATION_CREATEFROMDATA ,directly pass the value to this field.I hope,it will help you.
    <=<< Sharing Knowledge is a way to Innovative >=>>
    By,
      Yoga

Maybe you are looking for

  • Using different databases for an ADF web fusion application

    Hello all Here is the thing. Following some steps in a book developing an application, and I gotta say looks really good, so I thought why not just change it a bit and use it for the company I work for. Main problem is, the book uses the HR schema, a

  • Validation for initial budget upload in FMBB

    Hi, I have one requirement where client want a validation or rule, when they upload the budget for one group of commitment item and fund center then user should not be allowed again using the same document type initial budget upload to upload the bud

  • Message no. KJ161 when executing KKAX

    Dear Experts, My question is related to the following forums - http://scn.sap.com/thread/3516505 http://scn.sap.com/thread/1774905 http://scn.sap.com/thread/1768932 Our user found the following error when executing KKAX so the production order could

  • Thumbnails of images will not show

    When using bridge on some of my computers, thumbnails of images will not show, only a generic .eps icon.  We are trying to view files from an Art Explosions CD library and are using Bridge CS6 V 5.0.0.399

  • My signatures keep disappearing.

    I have a lot of them - in three different e-mail accounts.  Mac/Gmail/GoDaddy  But they all disappear.  All Signatures retains the names of them - but the contents of each signature are all gone.  Signatures designated to each account are gone too. T