Platform Explorer / Nuxeo Platform LTS 2016 8.10

Operation Auth.LoginAs

Login As

Description

Login As the given user. If no user is given a system login is performed. This is a void operations - the input will be returned back as the output.

The Login As operation is generally used in association with the Logout operation so that all operations included between Login As and Logout will be executed as if the user was logged in. After that, the previously connected user will automatically be logged in again (no need to "login As" again).

  1. Fetch > Context Document
  2. User & Groups > Login As
    • name= Administrator
  3. Document > Set ACL
    • Permission= Read
    • user= @[Context.principal.name]
    • acl= local
    • grant= checked
  4. User & Groups > Logout

To see a full example using the automation chain, you can browse to: Create a button that triggers the task assignment

Operation id Auth.LoginAs
Category Users & Groups
Label Login As
Requires
Since

Parameters

Name Description Type Required Default value
name string no  

Signature

Inputs void, document
Outputs void, document

Implementation information

Implementation class org.nuxeo.ecm.automation.core.operations.login.LoginAs
Contributing component org.nuxeo.ecm.core.automation.coreContrib

JSON definition

{
  "id" : "Auth.LoginAs",
  "label" : "Login As",
  "category" : "Users & Groups",
  "requires" : null,
  "description" : "Login As the given user. If no user is given a system login is performed. This is a void operations - the input will be returned back as the output.",
  "url" : "Auth.LoginAs",
  "signature" : [ "void", "void", "document", "document" ],
  "params" : [ {
    "name" : "name",
    "description" : "",
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}