Regexr during import from Active Directory

 

Hi,

I have a question. I've tried to find out resolution, but can't

In one object type, I would like to add groups from ActiveDirectory. One of fileds is "member", where could be a few person.

In import log files I can see:

CN=Katarzyna Suli,OU=Em Users,OU=Em,DC=wan,DC=em,DC=com;CN=Tomasz Dyl,OU=Em Com Users,OU=Empik,DC=wan,DC=em,DC=com;CN=Katarzyna Fer,OU=Em Users,OU=Em,DC=wan,DC=em,DC=com;CN=Adrianna Ziel,OU=Em Com Users,OU=Em,DC=wan,DC=em,DC=com;CN=Martyna Kap,OU=Em Com Users,OU=Em,DC=wan,DC=em,DC=com;CN=Piotr Kwa,OU=Warszawa Arkadia,OU=Em Salony,OU=Em,DC=wan,DC=empik,DC=com;

When try to use regexr "CN=(.*?),", only first object will be taken.

I will be happy to get all person from this line (stored in CN=)

I've tried use "CN=(.*?),/g" to use this regexp globaly but doesn't work in this case.

Do you have any suggestion?

Regards,
Krzysztof

 

1 answer

0 votes

Hi Krzysztof,

I would recommend to use https://regexr.com/ to verify that your regex is correct. It's very easy to use, and you can use text to try out there with your provided regex.

If it indeed turns out to be a bug, report that on the Insight Service Desk.

Best Regards
Alexander

Hi Alexander,

 

I've started with this page...

The problem is that in insight, '/g' option for "global" doesn't work.

 

Regards,

Krzysztof

Hi,

 

Any idea?

 

Regards,

Krzysztof

Hi,

We found that when using regex, only first match will be taken. So this is something that we will fix, and we have an already ongoing bug reported for this in our system. 

Best Regards
Alexander

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

412 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you