cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Getting User is not authorized for this operation exception while composing data in datahub

Former Member
0 Likes
770

In the composing data step of datahub I am getting user is not autorized for this operation error.

Please find the logs attached for the same. link text

Accepted Solutions (0)

Answers (1)

Answers (1)

Slava
Product and Topic Expert
Product and Topic Expert
0 Likes

That is because the user you're POSTing the composition with is not authorized for this operation.

For this purpose Data Hub has a special inbound user, which is configured by

 datahub.security.basic.inbound.user= 
 datahub.security.basic.inbound.password=

properties. Use this user to POST to /pools/{poolName}/compositions

Former Member
0 Likes

I tried using these properties but its still giving the same error. I even tried by changing the access role for the POST request but the error still persists.

Slava
Product and Topic Expert
Product and Topic Expert
0 Likes

It's also possible the inbound role is not configured. Add this property to your local.properties:

 datahub.security.roles.inbound=ROLE_DATAHUB_INBOUND
Slava
Product and Topic Expert
Product and Topic Expert
0 Likes

Sorry, this property is not used anymore, so it should not help you. But have you modified the security configuration for your DataHub instance? I mean did you do something that is described in this document https://help.hybris.com/1811/hcd/63e90d532f2646ed8b029037489bcd45.html? This may explain why you don't have access.