When executing intra-mart Accel Collaboration processes with the API or LogicDesigner, an error occurs stating there are no privileges.

 
All APIs of intra-mart Accel Collaboration are executed using the user privileges of the account context.

The account context after login is a logged-in user.
If the user who is trying to execute does not have privilege of operating the API, an error will occur.

If you want to execute the APIs as a user who is not a logged-in user, you need to switch users.

To switch users, you can use Java API and IM-LogicDesigner tasks.
Only Java API is provided. No JavaScript API is provided.


[User switching using Java API]

The following are available for Java API:

■ (im-BizAPI for JavaEE development) jp.co.intra_mart.foundation.user_context.switching.UserSwitcher class
https://api.intra-mart.jp/iap/javadoc/all-dev_apidocs/jp/co/intra_mart/foundation/user_context/switching/UserSwitcher.html

In the following document, an implementation example of switching users using the above API is shown.

■ intra-mart Accel Platform SAStruts+S2JDBC Programming Guide - Application ( intra-mart Accel Platform functions) - Access context - Programming method - How to use the defined access context -Execute the process by temporarily changing the execution user
https://document.intra-mart.jp/library/iap/public/development/sastruts_s2jdbc_programming_guide/texts/application/context/programing_guide/index.html#%E4%B8%80%E6%99%82%E7%9A%84%E3%81%AB%E5%AE%9F%E8%A1%8C%E3%83%A6%E3%83%BC%E3%82%B6%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%97%E3%81%A6%E5%87%A6%E7%90%86%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B


[User switching using IM-LogicDesigner task]

In IM-LogicDesigner, there is a task to switch users.
For more information, please refer to the following documents.

■ IM-LogicDesigner Specifications - Appendix - Task List - Category - General tasks - User switching
https://document.intra-mart.jp/library/iap/public/im_logic/im_logic_specification/texts/appendix/task/im_generic/im_userSwitcher.html
■ IM-LogicDesigner Specifications - Appendix - Task List - Category - General tasks - End of user switching
https://document.intra-mart.jp/library/iap/public/im_logic/im_logic_specification/texts/appendix/task/im_generic/im_endUserSwitcher.html


--Target-------------------------------------------------------------------------
iAP/Accel Applications/Accel Collaboration/All Updates
--------------------------------------------------------------------------------

FAQID:1341
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk