on 2025 Mar 14 3:37 PM
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.
If I wrote the groups line by line it works fine.
What's wrong?
Request clarification before answering.
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.