0 Replies Latest reply on Jun 15, 2021 9:57 PM by William Dario Palacios Guerrero

    User is not authorized to perform operation within tenant context

    William Dario Palacios Guerrero New Member

      Hello gurus,

       

      I'm trying to consume REST web services from a third-party supplier using a mapping in Data Integration. I'm using Hierarchy Builder to transform the data to JSON format after that I'm using Hierarchy Parser to map out the fields in the Bussines services.

       

       

        

      But when I run the mapping I obtain this error:

       

      com.informatica.sdk.helper.common.ApiException: Forbidden {"code":403,"reason":"Forbidden","description":"The server understood the request but refuses to authorize it.","message":"User is not authorized to perform operation within tenant context (id)"}

       

       

      at com.informatica.sdk.helper.common.impl.RESTInvokerProxy.execute(RESTInvokerProxy.java:266)

      at com.informatica.sdk.helper.common.RequestBuilder.execute(RequestBuilder.java:184)

      at com.informatica.sdk.helper.common.RequestBuilder.execute(RequestBuilder.java:201)

      at com.informatica.sdk.helper.swagger.proxy.Swagger2Infa.<init>(Swagger2Infa.java:149)

      at com.informatica.sdk.helper.swagger.proxy.SwaggerInstance.<init>(SwaggerInstance.java:49)

      at com.informatica.sdk.helper.swagger.proxy.SwaggerInstance.createSwaggerAsMetadata(SwaggerInstance.java:62)

      at com.informatica.sdk.helper.common.Validator.httpFileValidator(Validator.java:26)

      at com.informatica.sdk.helper.common.Validator.isValidSwagger(Validator.java:34)

      at com.infa.adapter.genericrest.metadata.adapter.GenericRestConnection.openConnection(GenericRestConnection.java:154)

      at com.informatica.adapter.sdkadapter.metadata.semantic.consumer.SDKConnection.openConnection(SDKConnection.java:51)

      at com.informatica.sdk.adapter.metadata.impl.ConnectionImpl.openConnection(ConnectionImpl.java:40)

      at com.informatica.cloud.adapter.cci.connection.CCIConnection.connect(CCIConnection.java:63)

      at com.informatica.saas.toolkit.metadataRead.xDao.PluginXModel.connect(PluginXModel.java:61)

      at com.informatica.saas.toolkit.metadataRead.xDao.PluginXDao.connect(PluginXDao.java:146)

      at com.informatica.saas.toolkit.metadataRead.xresources.PluginsXResource.connect(PluginsXResource.java:480)

      at sun.reflect.GeneratedMethodAccessor712.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)

      at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)

      at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)

      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878)

      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792)

      at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)

      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)

      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)

      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)

      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)

      at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)

      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)

      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)

      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1589)

      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

      at java.lang.Thread.run(Thread.java:748)

       

      What can I do to solve this problem?