Copied to clipboard

Flag this post as spam?

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


  • athenasumit 18 posts 69 karma points
    Jul 16, 2021 @ 09:49
    athenasumit
    0

    How to get details of user picked from user picker?

    I have created a document type containg user picker. I am able to fetch content from Content Management API but I am only getting user ID. How to get details of user picked from user picker like email and name?

  • Caroline635 2 posts 20 karma points
    Jul 21, 2021 @ 07:08
    Caroline635
    0

    Hi,. You can only choose users that have customer/user permissions on that JSD project. This is due to security/privacy reasons.

  • Dan Diplo 1543 posts 6098 karma points MVP 4x c-trib
    Jul 21, 2021 @ 09:01
    Dan Diplo
    0

    I'm not familiar with Heartcore, but the membership functions hang off the UmbracoHelper and can be accessed like this:

    var member = Umbraco.Member(123); // where 123 is your ID
    
    if (member != null)
    {
        var name = member.Name;    
        var email = member.Value<string>("email");
    }
    
  • Lindow 25 posts 176 karma points hq
    Aug 14, 2021 @ 11:59
    Lindow
    0

    Heya.

    The user picker isn't really meant to be used on the frontend.

    I would recommend creating a document type called e.g. Employee and then adding the info fields you need.

    You could then use a content picker to pick the specific Employee/User/Author...

    /Darek

Please Sign in or register to post replies

Write your reply to:

Draft