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 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
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