# question about users!!

**URL:** <https://community.ofelia.com/t/question-about-users/7173>\
**Category:** Q&A\
**Created:** [30 March 2016 19:45 UTC](https://community.ofelia.com/t/question-about-users/7173 "2016-03-30T19:45:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![claz08](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@claz08](https://community.ofelia.com/u/claz08)\
**Post date:** [30 March 2016 19:45 UTC](https://community.ofelia.com/t/question-about-users/7173/1 "2016-03-30T19:45:47Z")

</div>

hi,  
When i create a user through API REST, this user only appearse in BONITA PORTAL , so i can’t use this new user into bonita work flow, so i have to export the organization that are there in bonita portal and then import it into Bonita local.

the question is:

How i can automate the proces of creating users in order use this new user in Bonita local whitout export the organization and then import it as i said.

regards!.

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [3 April 2016 06:00 UTC](https://community.ofelia.com/t/question-about-users/7173/2 "2016-04-03T06:00:24Z")

</div>

Create a Bonitasoft application/process that adds the user to both portal and local?

That’s what I would do…

Regards  
Seán

PS: if this answers your question, please mark as resolved.

---

<div class="post-metadata">

**Author:** ![claz08](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@claz08](https://community.ofelia.com/u/claz08)\
**Post date:** [4 April 2016 10:22 UTC](https://community.ofelia.com/t/question-about-users/7173/3 "2016-04-04T10:22:48Z")

</div>

My question is simple,  
How i can to export the xml organization file from the bonita portal in order to import it to bonita local, but now i’m doing it manually and i would like to do it automatically, I think that there are a way using javadoc , can you give me a bit more explanation or any examples.

Thanks and regards.

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [4 April 2016 12:50 UTC](https://community.ofelia.com/t/question-about-users/7173/4 "2016-04-04T12:50:24Z")

</div>

But your statements are contradictory…

In the first question you say **without exporting** :

_How i can automate the process of creating users in order use this new user in Bonita local whitout export the organization and then import it as i said._

Now you are saying **I want to export** :

_How i can to export the xml organization file from the bonita portal in order to import it to Bonita local_

You have to decide which is right…

OK then,

From the JavaDoc

you export the organization from Bonita by using the exportOrganization() api and then you use the importOrganization() api to import it…

Here are some links I found with examples by doing a simple **Google Search** for Bonita importOrganization

[http://documentation.bonitasoft.com/import-organization](http://documentation.bonitasoft.com/import-organization)  
[http://documentation.bonitasoft.com/product-bos-sp/manage-organization](http://documentation.bonitasoft.com/product-bos-sp/manage-organization)

the way I would to this is:

1. Export the Organization to a shared folder
2. In the destination system, have a process that watched the folder (loops once every 5, or 10 minutes)
3. When it finds the file Import the Organization (make sure you move it out or delete it afterwards).

Regards  
Seán

_PS: if this answers your question, please mark as resolved._

---

<div class="post-metadata">

**Author:** ![claz08](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@claz08](https://community.ofelia.com/u/claz08)\
**Post date:** [4 April 2016 14:13 UTC](https://community.ofelia.com/t/question-about-users/7173/5 "2016-04-04T14:13:09Z")

</div>

sorry ,

i want to say without exporting “manually”, because what i want to do is import and export “automatically”.
