November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Yes, it is possible. You need to register a custom transformer like this:
[ServiceConfiguration(typeof(IModelTransform), Lifecycle = ServiceInstanceScope.Singleton)]
public class ContentDataStoreModelTransform : TransformBase<ContentDataStoreModel>
{
public override TransformOrder Order => TransformOrder.TransformEnd;
public override void TransformInstance(IContent source, ContentDataStoreModel target, IModelTransformContext context)
{
target.ChangedBy = GetRealUserFullName(target.ChangedBy);
target.CreatedBy = GetRealUserFullName(target.CreatedBy);
target.DeletedBy = GetRealUserFullName(target.DeletedBy);
target.PublishedBy = GetRealUserFullName(target.PublishedBy);
}
public string GetRealUserFullName(string username)
{
// convert username to fullname
return "FOO";
}
}
Hi,
I've implemented OpenId Connect in EPi with our Entity Server solution. Everything seems to work. What I would like to do now is to take the users id, for example "12345", and use that id as the username. If i set the NameClaimType to the claim containing the id this works fine but in edit mode it looks kinda sad. Everywhere where users are displayed all you see is this id. For example if you look at a page under "alternative" it says "Last changed by 12345". In the claims I also have the users GivenName and SurName which is successfully synchronized and stored in the DB (tblSynchedUser).
Now to the question: Can i tell EPi to display the GivenName and SurName in edit mode instead of the username? So it, for example, says "Last changed by John Doe"?
We are on version 11.