# Setting up default user account when building Aggregate from source

**URL:** <https://forum.getodk.org/t/setting-up-default-user-account-when-building-aggregate-from-source/1579>\
**Category:** Development\
**Created:** [August 30, 2012, 10:52pm UTC](https://forum.getodk.org/t/setting-up-default-user-account-when-building-aggregate-from-source/1579 "2012-08-30T22:52:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrislrobert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/chrislrobert/32/1613_2.png) [@chrislrobert](https://forum.getodk.org/u/chrislrobert)\
**Post date:** [August 30, 2012, 10:52pm UTC](https://forum.getodk.org/t/setting-up-default-user-account-when-building-aggregate-from-source/1579/1 "2012-08-30T22:52:10Z")

</div>

John,

There's a security.properties file that includes by default:

[security.server.superUser=mailto:sudar.sam@gmail.com](mailto:security.server.superUser=mailto:sudar.sam@gmail.com)  
security.server.superUserUsername=

For the latter (which defaults to blank), you can put in a username that  
will, by default, be able to login with the password mentioned in the  
securities.properties comments.

By default, this security.properties file gets bundled  
into WEB-INF/lib/odk-mysql-it-settings-latest.jar. What I do is place a  
customized security.properties (and jdbc.properties) into WEB-INF/classes.  
There, the customized ones override the ones in the .jar (and that way I  
leave the source tree alone and just override the properties in my Tomcat  
run-time directory). If you either put your Gmail in for superUser or put  
in a name for superUserUsername, then you'll be able to login even when the  
database starts out blank (i.e., when it doesn't have user records yet).

Hope that helps,

Chris

> **···**
>
> On Thursday, August 30, 2012, wrote:
> 
> > Hey Everyone,
> > 
> > I want to make some coding changes to Aggregate. I started by installing  
> > Aggregate on Tomcat/MySQL using the installer, that worked fine. Then I  
> > downloaded the source, after carefully reading, and re-reading, the  
> > CONFIGURE.TXT Maven was able to build a WAR with out error.
> > 
> > Tomcat runs the WAR with out problem, but I'm not able to log in. I've  
> > tried using Anonymous Access, but that just re-directs to  
> > [http://localhost:8080/aggregate-mysql-1.0/openid\_login.html](http://localhost:8080/aggregate-mysql-1.0/openid_login.html), I've tried  
> > Sign in with Google using the Google ID, I put in the Maven settings.xml  
> > file, but that just gives me a 401 error.
> > 
> > After some thinking I enabled the anonymous account in my Aggregate  
> > instance that I installed from the installer, then copied the database into  
> > the ODK\_unit database created by Maven, and now I can log in as anonymous,  
> > but I don't have any administrative access. I've tried coping the database  
> > with an administrative account already setup, but that doesn't work.
> > 
> > So any advice on how to log in with admin privileged to an ODK aggregate  
> > instance that's been built from source code would be greatly appreciated.
> > 
> > Thanks,
> > 
> > John.

---

<div class="post-metadata">

**Author:** ![Anvansh\_Singh](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/anvansh_singh/32/21238_2.png) [@Anvansh\_Singh](https://forum.getodk.org/u/Anvansh_Singh)\
**Post date:** [May 15, 2023, 7:40am UTC](https://forum.getodk.org/t/setting-up-default-user-account-when-building-aggregate-from-source/1579/2 "2023-05-15T07:40:42Z")

</div>

Hey @chrislrobert, what about the user password. We are looking for a way to change the default user pass (which is aggregate). How can that be achieved? I see no mention of that in the aggregate docs. Can that be configured using security.properties?

---

<div class="post-metadata">

**Author:** ![chrislrobert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/chrislrobert/32/1613_2.png) [@chrislrobert](https://forum.getodk.org/u/chrislrobert)\
**Post date:** [May 15, 2023, 9:07am UTC](https://forum.getodk.org/t/setting-up-default-user-account-when-building-aggregate-from-source/1579/3 "2023-05-15T09:07:08Z")

</div>

Oh, I don't know. Those docs are from a decade ago, Aggregate changed a lot and then was replaced by Central since then. Sorry I can't be of more help!

Best,

Chris

---

<div class="post-metadata">

**Author:** ![dicksonsamwel](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dicksonsamwel/32/2898_2.png) [@dicksonsamwel](https://forum.getodk.org/u/dicksonsamwel)\
**Post date:** [May 15, 2023, 8:38pm UTC](https://forum.getodk.org/t/setting-up-default-user-account-when-building-aggregate-from-source/1579/4 "2023-05-15T20:38:05Z")

</div>

Hello @Anvansh_Singh,

Aggregate is no longer being updated. See the link below;

> [@Aggregate is no longer being updated](https://forum.getodk.org/t/aggregate-is-no-longer-being-updated/33742):
>
> In accordance with the plans announced at [Upcoming changes to Aggregate](https://forum.getodk.org/t/upcoming-changes-to-aggregate/17582), the core team is no longer updating Aggregate. We will not fix bugs, add features, review PRs, improve documentation, release new versions, or answer support questions. We've been communicating this reality to users over the last two years through the [documentation](https://docs.getodk.org/aggregate-intro/), [code repo](https://github.com/getodk/aggregate), and in community announcements. The core team (and the [@TAB](https://forum.getodk.org/groups/tab)) believe that Central is production ready and better than Aggregate for most users, so …

---

<div class="post-metadata">

**Author:** ![Anvansh\_Singh](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/anvansh_singh/32/21238_2.png) [@Anvansh\_Singh](https://forum.getodk.org/u/Anvansh_Singh)\
**Post date:** [May 16, 2023, 6:37am UTC](https://forum.getodk.org/t/setting-up-default-user-account-when-building-aggregate-from-source/1579/5 "2023-05-16T06:37:40Z")

</div>

Can you tell me whether changing password was ever possible in aggregate? If yes, then how can that be done?  
We are using aggregate for one of our applications since a long time and switching to central would be a hefty task.

---

<div class="post-metadata">

**Author:** ![Saad](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/saad/32/4537_2.png) [@Saad](https://forum.getodk.org/u/Saad)\
**Post date:** [May 16, 2023, 6:53am UTC](https://forum.getodk.org/t/setting-up-default-user-account-when-building-aggregate-from-source/1579/6 "2023-05-16T06:53:01Z")

</div>

Aggregate has password change function inside interface. Are you facing any issue in using that?
