OIM 11g Error: IAM-3050021:The user with the key null does not exist.:null

After only seeing 2 results in google, with no answers. I decided to consume up my Saturday night to resolve this issue
February 1, 2015
OIM-11gADLDAP
E_WARNING Error in file posts.php at line 313: fopen(http://www.technicalconfessions.com/images/postimages/postIcons/pp362.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found E_WARNING Error in file posts.php at line 313: fclose() expects parameter 1 to be resource, boolean given
https://technicalconfessions.com/images/postimages/postimages/_362_1_logging into OIM identity url.png

When successfully entering the username into the identity url with the correct password, I would end up getting an IAM-3050021:The user with the key null does not exist error. I did notice the stack trace differed to the other remaining 2 results so this may (or may not) resolve your Error 500--Internal Server Error when accessing OIM

https://technicalconfessions.com/images/postimages/postimages/_362_2_500 internal error when accessing OIM identity URL.png

The stack error is as follows:

javax.servlet.ServletException: oracle.iam.identity.exception.UserManagerException: oracle.iam.platform.authopss.exception.AccessDeniedException: java.lang.RuntimeException: LoggedIn userKey 'null' OR the passed user key 'null' is coming as NULL.
at oracle.iam.platform.servletfilter.PwdMgmtNavigationFilter.redirectBasedOnRoles(PwdMgmtNavigationFilter.java:192)
at oracle.iam.platform.servletfilter.PwdMgmtNavigationFilter.doFilter(PwdMgmtNavigationFilter.java:147)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:175)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.bpel.services.workflow.client.worklist.util.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:70)
...
Caused by: oracle.iam.identity.exception.UserManagerException: oracle.iam.platform.authopss.exception.AccessDeniedException: java.lang.RuntimeException: LoggedIn userKey 'null' OR the passed user key 'null' is coming as NULL.
at oracle.iam.platform.servletfilter.PwdMgmtNavigationFilter.getLoginFlowDetailsForUser(PwdMgmtNavigationFilter.java:324)
at oracle.iam.platform.servletfilter.PwdMgmtNavigationFilter.redirectBasedOnRoles(PwdMgmtNavigationFilter.java:190)
... 29 more
Caused by: oracle.iam.platform.authopss.exception.AccessDeniedException: java.lang.RuntimeException: LoggedIn userKey 'null' OR the passed user key 'null' is coming as NULL.
at oracle.iam.platform.authopss.impl.AuthorizationServiceImpl.hasAccess(AuthorizationServiceImpl.java:153)
at sun.reflect.GeneratedMethodAccessor1234.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)


SOLUTION

I noticed that within the stack trace, the last method to be called was 'redirectBasedOnRoles'. Knowing that I recently configured the HOW TO: Configure OIM 11g AD/LDAP Authentication from Weblogic, turns out that the group assigned to the users were not getting assigned within weblogic under the users within the 'user and group' section.

https://technicalconfessions.com/images/postimages/postimages/_362_4_oimusers groups resides within WLS.png

To immediately resolve this, I deleted the AD provider within WLS that I created a few days ago. To resolve this issue moving forward, I re-created the Authentication Provider and ensured that the AD user has the associated oimusers group membership

https://technicalconfessions.com/images/postimages/postimages/_362_5_users group membership with oimusers.png

Then I used a LDAP query to ensure the group in question was getting transferred over. Once you restarted WLS admin, you would be able to see the group within the 'user and group' tab with the group having a parent group of 'oimusers' also.

https://technicalconfessions.com/images/postimages/postimages/_362_6_oimusers group verification within WLS users and groups.png

I was then able to log into OIM using the account

About the author

Daniel is a Technical Manager with over 10 years of consulting expertise in the Identity and Access Management space.
Daniel has built from scratch this blog as well as technicalconfessions.com
Follow Daniel on twitter @nervouswiggles

Comments

Other Posts

ForgeRock OpenIDM - InvalidCredentialException: Remote framework key is invalid

ICFIDMOpenIDMOpenICF

November 8, 2017
Created by: Daniel Redfern
In the past, the similar error occurred though for the Oracle Identity Management solution. invalidcredentialexception remote framework key is invalid Because they all share the ICF connector framework, the error/solution would be the same.
Read More...

org.forgerock.script.exception.ScriptCompilationException: missing ; before statement

IDMsync.confforgerockopenidm

November 8, 2017
Created by: Daniel Redfern
org.forgerock.script.exception.ScriptCompilationException: missing ; before statement
Read More...

ForgeRock IDM - org.forgerock.script.exception.ScriptCompilationException: missing ; before statemen

OpenIDMsync.confForgeRock

September 17, 2017
Created by: Daniel Redfern
ForgeRock IDM - org.forgerock.script.exception.ScriptCompilationException: missing ; before statement
Read More...

Caused by: org.forgerock.json.resource.BadRequestException: Target does not support attribute groups

OpenIDMForgeRockICFConnector

September 17, 2017
Created by: Daniel Redfern
When performing the attempt of a reconciliation from ForgeRock IDM to Active Directory, I would get the following error
Read More...

ForgeRock OpenIDM - InvalidCredentialException: Remote framework key is invalid

OpenIDMForgeRockICFConnectorAD

September 17, 2017
Created by: Daniel Redfern
In the past, the similar error occurred though for the Oracle Identity Management solution. invalidcredentialexception remote framework key is invalid Because they all share the ICF connector framework, the error/solution would be the same.
Read More...

ERROR Caused by com.google.api.client.auth.oauth2.TokenResponseException 400 Bad Request - invalid_g

OpenIDMIDMGoogleGoogle-AppsICFreconciliation

September 12, 2017
Created by: Daniel Redfern
During the reconcilation from OpenIDM to the ICF google apps connector, the following error response would occur. ERROR Caused by com.google.api.client.auth.oauth2.TokenResponseException 400 Bad Request - invalid_grant
Read More...

forgerock-openidm-encryptedjwt-error

OpenIDMIDMForgeRockJWTIAM

August 29, 2017
Created by: Daniel Redfern
Received the JWT error
Read More...

Unexpected character ('¾' (code 190)): expected a valid value

ForgeRock-OpenIDMOpenIDMIDMKeystore

June 25, 2017
Created by: Daniel Redfern
Unexpected character occurred when the IP addresses changes and the virtual instance was migrated into a separate network subnet.
Read More...
E_WARNING Error in file posts.php at line 464: fopen(http://www.technicalconfessions.com/images/postimages/postIcons/pp444.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found E_WARNING Error in file posts.php at line 464: fclose() expects parameter 1 to be resource, boolean given

OpenDJ Error - Connect Error Result Code: 91 (Connect Error)

OpenDJLDAPldapsearchForgeRock

June 5, 2017
Created by: Daniel Redfern
When trying to connect, I would then receive the following error "Connect Error Result Code: 91 (Connect Error)"
Read More...

Tomcat NioEndpoint$SocketProcessor.doRun java.lang.NullPointerException error

TomcatJava-8PKICAS

June 5, 2017
Created by: Daniel Redfern
When initiating the Tomcat instance, the cas-stderr log file will log a SEVERE error logging multiple times every few seconds
Read More...