cancel
Showing results for 
Search instead for 
Did you mean: 

impex and default value for usergroup

MarcoCoppola
Explorer
0 Kudos
143

I want create an impex that create a set of users.

My issue is on set the default value for the attribute groups

This is the header:

UPDATE Employee ; uid[unique = true]; name ; groups(uid)[default = myUserGroup][mode=append] ; password[default = $defaultPassword] ; sessionLanguage(isocode)[default=$defaultLanguage] ; sessionCurrency(isocode)[default = $defaultCurrency]

 the predicate [default = myUserGroup][mode=append] don't have any effect.

  • myUserGroup exists,
  • i'm using the append mode
  • others default works fine

If I wrote the groups line by line it works fine.

What's wrong?

Accepted Solutions (1)

Accepted Solutions (1)

mansurarisoy
Contributor

You should use the default modifier next to the uid attribute inside the parentheses. Therefore, your ImpEx header should be as follows

UPDATE Employee; uid[unique = true]; name; groups(uid[default = myUserGroup])[mode=append]; password[default = $defaultPassword]; sessionLanguage(isocode)[default=$defaultLanguage]; sessionCurrency(isocode)[default = $defaultCurrency]

 

Answers (0)