In my system, a user can have more than one role. Users with two roles or more can switch between roles. However, it's impossible to switch role for a user with only one role. How can I represent this fact in use case diagram?
Thank you.
You shouldn't show that condition in the use case diagram. The use case diagram is meant to give you a helicopter view of the features of the application and hide all the details.
You can put the condition in the pre-condition of the use case. So if you put User must have more then one role as pre-condition then the use case doesn't even start if that condition is not true.
PS. I'm assuming that your Role
is a different concept from the roles represented by the actors and that Role
could have been Account
or Group
or something else.