BusinessObjects Board

How do I Enable/Disable a user in BO XI R2

I am using BO XI R2 .NET SDK. From my web page I want to Enable/Disable user account in Business Objects. I know business objects will automatically lock the user if the user enters an incorrect for x times. If the user is locked or disabled, I want to enable it from my web page instead of going into BO Console. I was able to add/delete the user but not enable/disable the user.

Please let me know how I can accomplish this?

Thank you


RCH (BOB member since 2004-11-11)

If any one is looking to enable/disable a user using .NET SDK, here is how you do it…

Dim myInfoObjects As InfoObjects = myInfoStore.Query(myQuery)
Dim myUser As CrystalDecisions.Enterprise.Desktop.User = CType(myInfoObjects(1), CrystalDecisions.Enterprise.Desktop.User)
Dim myUserAlias As UserAlias = myUser.Aliases(1)

myUserAlias.Disabled = True '— True:Disable / False:Enable
myInfoStore.Commit(myInfoObjects)

Hope this helps.


RCH (BOB member since 2004-11-11)