Take the community feedback survey now.
AI OnAI Off
Take the community feedback survey now.
Hi Ted!
It is an intranet so all groups comes from the AD. To be able to use the AD groups in CMS I have added this:
_ = services.AddVirtualRole<Infoadmin>("my_group");
public class Infoadmin : VirtualRoleProviderBase
{
public Infoadmin()
{
SupportsClaims = true;
EnableIsInRoleCache = false;
SecurityEntityType = SecurityEntityType.Role;
}
public override bool IsInVirtualRole(IPrincipal principal, object context)
{
if (principal.IsInRole("my_group"))
{
return true;
}
return false;
}
}
Probalby got something to to with this. Without the code above I cannot set access rights on the AD groups, they are missing in CMS.
Thanks!
Hi!
I have a group "my_group" that has admin access using the following
I also have a admin tab defined like this:
Member in my group can access everything in admin mode but not the Admin tab when editing content.
What am I missing?
Thanks!
/Kristoffer