Roles

D

Daniel Groh

Hi folks,
Having this code:

if(User.IsInRole("ConfiguredRole")) {
ApplyRule();
}

should it works right ? but doesn't with me...when i set User. (dot) i just
have some properties and methods where the method IsInRole() is not
showing...How do i do ?

Thanks in advance

Daniel
 
K

Kha Tran

Can you create a new user? I cannot. Any idea?

Hi folks,
Having this code:

if(User.IsInRole("ConfiguredRole")) {
ApplyRule();
}

should it works right ? but doesn't with me...when i set User. (dot) i
just
have some properties and methods where the method IsInRole() is not
showing...How do i do ?

Thanks in advance

Daniel
 
D

Daniel Groh

Now I'm using the IsInRole, but i don't have idea how to set mey user to my
role, for example...i want the user Master in the Admin role...how do i set
this ?

"Kha Tran" <[email protected]> escreveu na mensagem
Can you create a new user? I cannot. Any idea?
 
G

Guest

This is normally done in Active Directory Users and Computers, on the Member
Of tab.. not sure how you do it in code, though!
 
G

Guest

Try

User.IsInRole("DOMAIN_NAME/ConfiguredRole")

HTH

Elton Wang
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top