Solved

Appending Roles

Posted on 2004-09-30
13
543 Views
Last Modified: 2013-12-18
@IsMember("[Sales]"; @UserRoles)

How would I add another role to this?

[PMMEMEA]

would it be something like this

@IsMember("[Sales]":"[EMEAPMM]"; @UserRoles)
0
Comment
Question by:Jaziar
  • 4
  • 4
  • 3
  • +2
13 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 12192831
Right, (@IsMember("[Sales]":"[EMEAPMM]"; @UserRoles)) means that user has both the roles enabled...

What is that you want to check or do ?

~Hemanth
0
 

Author Comment

by:Jaziar
ID: 12192859
I want the user can be in one or the other not both
0
 
LVL 14

Expert Comment

by:p_partha
ID: 12193183
That's get tricky as there might be a logical flaw.. i would try this:

!@IsMember(@UserRoles; "[Sales]") & 
!@IsMember(@UserRoles; "[EMEAPMM]")
0
 
LVL 13

Expert Comment

by:CRAK
ID: 12193231
I usually check with:

@Userroles *= "[Sales]":"[EMEAPMM]"
0
 
LVL 14

Expert Comment

by:p_partha
ID: 12193250
But crak, he wants to hide it , if the user has both the roles

Partha
0
 
LVL 9

Accepted Solution

by:
HappyFunBall earned 50 total points
ID: 12193311
That's not exactly right partha - the parameters are backwards.

This should work:

(@IsMember("[Sales]"; @UserRoles) | @IsMember("[EMEAPMM]"; @UserRoles)) & 
!@IsMember("[Sales]":"[EMEAPMM]"; @UserRoles)

That says, return 1 if Sales Or EMEAPMM roles are selected but not both.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 13

Expert Comment

by:CRAK
ID: 12193329
Hmm.... I overread that bit.
In that case I guess there's nothing left to add other that to congratulate you!
;-))
0
 
LVL 13

Expert Comment

by:CRAK
ID: 12193365
I don't see the full features of that one yet (I'm getting tired), but HappyFunBall does have a point Partha:
What if the user has neither?
0
 
LVL 14

Expert Comment

by:p_partha
ID: 12193383
Yeah funball is right Crak.. Hide whens are always Head aches...:)

Partha
0
 

Author Comment

by:Jaziar
ID: 12193450
The user may not have either. I also hate hide statements!!!!
0
 
LVL 13

Expert Comment

by:CRAK
ID: 12193451
Then why do you keep trying? There are loads of other challenges!
I once found getting a headacke a pretty good reason to try to stop bumpung my head against things.
Worked well! Saved lots on painkillers too!
0
 
LVL 14

Expert Comment

by:p_partha
ID: 12193464
Jaziar,
If funball's logic also not fits for you, then put down the requirements explaining exactly what do u want

Partha
0
 

Author Comment

by:Jaziar
ID: 12193633
Never thought about not bumping my head Crak - WOW
Funball's logic works for me - You guys have a good weekend and buy yourself a beer with the savings from the painkillers.  Thanks to all of you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now