Errors when using UserLocalManagement extension
Question

Hi,

Has anyone been able to use the system extension UserLocalManagement? 

Every time I try to use this extension I get the error: 

The type initializer for 'ssEspaceTest.RssExtensionUsersLocalManagement' threw an exception.

This happens for both Reactive and Traditional applications. At least for Platform Server Version: Version 11.7.3 (Build 5968).

I am interested in using the actions User_CheckRole, User_GrantRole and User_RevokeRole that supposedly allow to dynamically check, grant and revoke cached temporary roles. 

The reason I need these actions is to map external roles to OutSystems roles. These roles are temporary, therefore we can't use the UserRole database table, as changing this table makes roles permanent and requires logout and login for the logged in User.

Best regards,

João Mateus

mvp_badge
MVP

Hi Joao,

I also tried consuming it just now and getting same error , seems like some issue with the extension its elf . I am trying to debug the extension in sometime and will let you know if found something.


Regards,

-PJ-

mvp_badge
MVP

Hi Joao,

Are you still facing this  issue ? if yes please create a support case with Outsystems .



Regards,

-PJ-

mvp_badge
MVP

I also tried to use this extension recently and it never worked.

mvp_badge
MVP

I will take this to OS team as the problem is with extension itself and almost everyone using this is facing issue.


Regards,

-PJ-




Has this been resolved?

I get this error, "The type initializer for 'ssUsersLibrary.RssExtensionUsersLocalManagement' threw an exception." when I use the action User_Create. The user gets created correctly though.

Any resolution to this?

Any solution guys?

I really need to create a user and send e-mail to them..

mvp_badge
MVP

Hello guys,

More comments on the problem, maybe it helps someone.

After migrating some applications from V10 (java) to V11 Version 11.15.0 (Build 34858) , in a specific action this error occurred when using User_Login.

Error:

[1] The type initializer for 'ssUsersLibrary.RssExtensionUsersLocalManagement' threw an exception.
at ssUsersLibrary.RssExtensionUsersLocalManagement.MssGroup_CreateOrUpdateMultiple_XIF(HeContext heContext, RecordList inParamGroups)
at ssUsersLibrary.Actions.ActionUser_Login(HeContext heContext, String inParamUsername, String inParamPassword, Boolean inParamRememberLogin)
at ssSASHubEmp.RsseSpaceUsersLibrary.MssUser_Login2(HeContext heContext, String inParamUsername, String inParamPassword, Boolean inParamRememberLogin)
at ssSASHubEmp.Flows.FlowMainFlow.ScrnIntegraSASPopUpLoginCode.CommandEntrar(HeContext heContext)

[2] Database is not Isolated. UsersLocalManagement can only be used in Isolated Databases.
at OutSystems.Application.Initialization.ASPNet.Configuration.OutsystemsServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at OutSystems.Application.Core.ServiceLocator.GetService[T]()
at ssUsersLibrary.RssExtensionUsersLocalManagement..cctor()


the error was happening because there was an ajax refresh before login.

We took that ajax refresh and it solved the problem.


what we also did was restart the server.

Hope it helps.

Regards.







Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.