PureConnect

 View Only
Discussion Thread View
  • 1.  Removing a user skill

    Posted 04-27-2011 22:46
    Hello, I am trying to remove a user skill but get an InsufficientRightsException when trying to commit. I am logging in using current credentials: var applicationName = System.Diagnostics.Process.GetCurrentProcess().ProcessName; var credentials = CommonCredentials.GetCredentials(applicationName, LoadFlags.Default | LoadFlags.Application, LoadPreference.Newest); var session = new Session(); session.Connect(credentials.SessionSettings, credentials.HostSettings, credentials.AuthSettings, credentials.StationSettings); var cm = ConfigurationManager.GetInstance(session); var ucl = new UserConfigurationList(cm); var fd = new List<FilterDefinition<UserConfiguration, UserConfiguration.Property>>(); fd.Add(new BasicFilterDefinition<UserConfiguration, UserConfiguration.Property>(UserConfiguration.Property.DisplayName, "isazonov", FilterMatchType.Exact)); var qs = new QuerySettings<UserConfiguration, UserConfiguration.Property>(new GroupFilterDefinition<UserConfiguration, UserConfiguration.Property>(fd)); ucl.StartCaching(qs); var list = ucl.GetConfigurationList(); list[0].PrepareForEdit(); list[0].Skills.Value.RemoveAt(0); list[0].Commit(); // throws an exception here ucl.StopCaching(); session.Disconnect(); Is there something I am missing? The skill is not an inherited one and is defined directly on the user if that makes any difference. Can anyone point me in the right direction? Thank you!


  • 2.  RE: Removing a user skill

    Posted 05-16-2011 14:51
    What is the error message being returned?


  • 3.  RE: Removing a user skill

    Posted 05-18-2011 00:15
    It throws IceLib's InsufficientRightsException exception when trying to execute list[0].Commit() statement.


  • 4.  RE: Removing a user skill

    Posted 10-03-2011 19:17
    The user you are logged in as probably doesn't have the rights to the skills container in IA.


  • 5.  RE: Removing a user skill

    Posted 10-04-2011 22:43
    Yes, as we found out the user has to be selected under Users category in Admin Access tab in IA. This can be used at workgroup level as well and according to I3 does not possess any security risks as long as the user doesn't have access to IA.


Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources