Skip to main content
Solved

How can I use variable database connections in fme server depending on the specific user parameter input? This works fine in desktop but not with server.

  • October 27, 2022
  • 5 replies
  • 26 views

Forum|alt.badge.img

Hi,

I have a workspace where I use the oracle database connections as a variable. This works fine. When a runs the workspace a published parameter determines which connection is used.

But when I publish this on fme server. I get an authorisation failure:

 

FME Server error: `Unauthorized request by user due to lack of proper permissions for connection: **@**. Please see: http://fme.ly/zn8'

 

Connections in fme server are available as in the variable.

Best answer by ejmpost

Found the solution in token management. Did not realize the app is using deparate permissions.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

david_r
Celebrity
  • 8391 replies
  • October 27, 2022

The error message indicates that the database connection hasn't been shared with the user running the workspace. Is that possible?


Forum|alt.badge.img
  • Author
  • 8 replies
  • October 31, 2022

I was looking into that and found that it works when I enter the connection manually. But only when running the workspace directly from fme server. When I launch it with an app I get the same error. So is there something different when using a fme server app?


david_r
Celebrity
  • 8391 replies
  • October 31, 2022

I was looking into that and found that it works when I enter the connection manually. But only when running the workspace directly from fme server. When I launch it with an app I get the same error. So is there something different when using a fme server app?

Look in the FME job log after being executed by the automation, and search for "FME_SECURITY_USER" and "FME_SERVER_RUNTIME_USER_ID". The username specified for this parameter must have explicit access to the database connection.


Forum|alt.badge.img
  • Author
  • 8 replies
  • Best Answer
  • October 31, 2022

Found the solution in token management. Did not realize the app is using deparate permissions.


Forum|alt.badge.img
  • Author
  • 8 replies
  • October 31, 2022

Look in the FME job log after being executed by the automation, and search for "FME_SECURITY_USER" and "FME_SERVER_RUNTIME_USER_ID". The username specified for this parameter must have explicit access to the database connection.

Found it. Thanks for your replies.