Bug 56045 - Re-imported teacher not added to teachers group in the new school
Re-imported teacher not added to teachers group in the new school
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: Ucsschool-lib
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-05-08 16:15 CEST by Carlos García-Mauriño
Modified: 2023-05-08 17:16 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.171
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos García-Mauriño univentionstaff 2023-05-08 16:15:52 CEST
With `ucs-school-lib-common 13.0.36`.

source.csv
```csv
"firstname", "lastname", "name", "record_uid", "schools"
"test", "test", "test", "test", "a,b"
```

config.json
```json
{
    "csv": {
        "mapping": {
            "schools": "schools",
            "firstname": "firstname",
            "lastname": "lastname",
            "name": "name",
            "record_uid": "record_uid"
        }
    }
}
```

command
```bash
/usr/share/ucs-school-import/scripts/ucs-school-user-import -i source.csv --set source_uid=importer user_role=teacher -c config.json
```

```
  groups: cn=Domain Users a,cn=groups,ou=a,dc=test,dc=intranet
  groups: cn=lehrer-a,cn=groups,ou=a,dc=test,dc=intranet
  groups: cn=lehrer-b,cn=groups,ou=b,dc=test,dc=intranet
```

Then, reimported with school a and c (instead of b).

The user in UDM has:

```
  groups: cn=Domain Users a,cn=groups,ou=a,dc=test,dc=intranet
  groups: cn=lehrer-a,cn=groups,ou=a,dc=test,dc=intranet
```

The group `cn=lehrer-c` is missing