jobs

Thursday, 27 February 2020 · 4 messages · last reply 28 Feb 2020
ВВ
Ветошкин Владимир27 Feb 2020 11:26 #
Hi! Is it possible to add a job under specified user or only admin? I have a base with accessing only for userA. And I want to add a job with queries to that base under userA.
-- С уважением, Ветошкин Владимир Владимирович
ВВ
Ветошкин Владимир27 Feb 2020 12:08 #
I solved it by the function "client:connect" Is it right?
Quoted text · Ветошкин Владимир · 12 lines
27.02.2020, 13:26, "Ветошкин Владимир" <en-trance at yandex.ru>: > Hi! > > Is it possible to add a job under specified user or only admin? > I have a base with accessing only for userA. And I want to add a job with queries to that base under userA. > > > > -- > С уважением, > Ветошкин Владимир Владимирович >
-- С уважением, Ветошкин Владимир Владимирович
CG
Christian Grün27 Feb 2020 16:35 #
Hi Vladimir,
Quoted text · Ветошкин Владимир · 1 line
> Is it possible to add a job under specified user or only admin?
Only admin users can call jobs:eval(), and the resulting job will have admin permissions as well.
Quoted text · Ветошкин Владимир · 2 lines
> I solved it by the function "client:connect" > Is it right?
Yes; this function allows you to connect to a BaseX server from XQuery with users other than admins. You should address another instance of BaseX than the one you’re currently residinig in; otherwise you may create deadlocks (as described in the documentation of the module). You can also use xquery:eval to run some code with restricted permissions (but the query won’t be evaluated as independent job). Hope this helps, Christian
Quoted text · Ветошкин Владимир · 19 lines
> 27.02.2020, 13:26, "Ветошкин Владимир" <en-trance at yandex.ru>: > > Hi! > > Is it possible to add a job under specified user or only admin? > I have a base with accessing only for userA. And I want to add a job with queries to that base under userA. > > > -- > С уважением, > Ветошкин Владимир Владимирович > > > > > -- > С уважением, > Ветошкин Владимир Владимирович >
ВВ
Ветошкин Владимир28 Feb 2020 05:06 #
Hi, Christian! Thank you.
Quoted text · Christian Grün · 48 lines
27.02.2020, 18:35, "Christian Grün" <christian.gruen at gmail.com>: > Hi Vladimir, > > > > > Is it possible to add a job under specified user or only admin? > > Only admin users can call jobs:eval(), and the resulting job will have > admin permissions as well. > > > > > I solved it by the function "client:connect" > > Is it right? > > Yes; this function allows you to connect to a BaseX server from XQuery > with users other than admins. You should address another instance of > BaseX than the one you’re currently residinig in; otherwise you may > create deadlocks (as described in the documentation of the module). > > You can also use xquery:eval to run some code with restricted > permissions (but the query won’t be evaluated as independent job). > > Hope this helps, > Christian > > > > > > > 27.02.2020, 13:26, "Ветошкин Владимир" <en-trance at yandex.ru>: > > > > Hi! > > > > Is it possible to add a job under specified user or only admin? > > I have a base with accessing only for userA. And I want to add a job with queries to that base under userA. > > > > > > -- > > С уважением, > > Ветошкин Владимир Владимирович > > > > > > > > > > -- > > С уважением, > > Ветошкин Владимир Владимирович
-- С уважением, Ветошкин Владимир Владимирович

⚡Generated with XQuery