Book a Demo

Author Topic: Access to user permission  (Read 4764 times)

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Access to user permission
« on: April 05, 2014, 06:49:39 am »
Hi

Does anybody know if there is a AI method to access user permissions
or at least get details of the group for the current user?

Reason being that I want to limit some actions to users who have administrator role in those instances where security is enabled for the current model.

Thanks
« Last Edit: April 05, 2014, 06:50:08 am by MrWappy »
EXploringEA - information, utilities and addins

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Access to user permission
« Reply #1 on: April 05, 2014, 08:29:56 am »
There is none. You need to query the t_sec* tables to get the info you need.

q.

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: Access to user permission
« Reply #2 on: April 06, 2014, 01:24:06 am »
Hi q

Many thanks - at least I didn't miss anything in the docs ;D
EXploringEA - information, utilities and addins

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Access to user permission
« Reply #3 on: April 06, 2014, 01:37:19 am »
Well, the SQLQuery is part of the API. So it's official in-official (as the structures themselves are not official) ;)

q.