As skiltz points out, use Roles.GetRolesForUser() to get groups member belongs to. Id of member is just as simple as
umbraco.cms.businesslogic.member.Member member = umbraco.cms.businesslogic.member.Member.GetMemberFromLoginNameAndPassword(UserName, Password);
var memberId = member.Id;
Query related to Business Logic
Hi,
I am using
umbraco.cms.businesslogic.member.Member member = umbraco.cms.businesslogic.member.Member.GetMemberFromLoginNameAndPassword(UserName, Password);
to verify users credentials.
How can I get id for the member id as well as member group to which the validated member belongs?
Prompt response would be greatly appreciated.
Thanks in advance,
You can get the roles a user belong to using Roles.GetRolesForUser(User.Identity.Name)
You can get a users current username like User.Indentity.Name
You can get a users current member id using something like umbraco.cms.businesslogic.member.Member.GetCurrentMember().Id
As skiltz points out, use Roles.GetRolesForUser() to get groups member belongs to. Id of member is just as simple as
Cheers,
/Dirk
Hi,
Thanks for your prompt response.
is working on a reply...