Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Jan 24, 2023 @ 09:45
    Biagio Paruolo
    0

    How to update the username/member in History list when use Api?

    Hi,

    I wish to reflect the member name into the history list when he update the data by API. How to?

    enter image description here

  • Marc Goodson 2157 posts 14435 karma points MVP 10x c-trib
    Jan 29, 2023 @ 11:42
    Marc Goodson
    0

    Hi Biagio

    If you are using the ContentService to Save and Publish the page, then there is an 'overload' which accepts the 'UserId' of the User you want to record as having published the page:

    https://github.com/umbraco/Umbraco-CMS/blob/33adbf41fa1f5c5d0759c70a7116114107addf56/src/Umbraco.Core/Services/ContentService.cs#L1109

    if you don't pass that UserId, in then it defaults to be the SuperUserId, which is the Administrator you see in your screenshot

    regards Marc

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Jan 29, 2023 @ 12:19
    Biagio Paruolo
    0

    I know, but the member change some his related information with a Reactjs dashboard that I build with Umbraco Api. So I wish to see this changes into the Audit log.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies