question

Upvote
Accepted
196 30 51 55

[JET API or JavaScript] How to check Eikon access permisson?

Hi, Is there a way to check whether a specified user has the access permisson on a specified RIC/Chain (e.g. 0005.HK or .SQUOTA.HS) through JET API or JavaScript? Thanks, Bo
eikoneikon-app-studiojavascriptpermissioning
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
39.4k 77 11 27
Hi Bo, When you subscribe to a RIC the updatedValues parameter returned to onUpdate event handler contains STATUS object. When the user is not permissioned for the RIC the "formatted" property of the STATUS object returns "NOPERM". function onUpdateHandler(subscription, ric, updatedValues) {     if (updatedValues["STATUS"]) {         if (updatedValues["STATUS"].formatted === "NOPERM") {             //user is not permissioned for the ric         }     } } Hope this helps, Alex
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.