Skip to content

Sync not possible when missing first or last name #4

@giRobert

Description

@giRobert

Hey there,

I have many users in my active directory which dont have a first name or dont have a last name.
Since both fields are required in redmine, the sync doesnt allow me to add them to redmine.

Errors:

-- Could not create user 'XYZ': "First name cannot be blank"
-- Could not create user 'XYZ': "Last name cannot be blank"

this is not really an issue of this plugin its more likely a problem of redmine: https://www.redmine.org/issues/29757

But now to my questions. would it be possible that someone tells me how I am able to add some kind of fallback to this plugin? the fallback would be: if there is no first name, use the last name as first name as well. AND if there is no last name, use the first name as las name.

this should be 1-2 lines only in the code right? i dont know anything about ruby but i hope someone can help. i guess the validation must be tricked and the user creation too.

one example:

i have a user called "max" with mail address "max@example.com". I can not import this user becaue he has no last name. the workaround would transform "max" to "max max". looks stupid, but i will be able to use the user....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions