How to add Field to User Schema (useraccounts)

Hello guys!

I have a task that sounded easy but turned out to be surprisingly difficult to me.
I want to expand the User Schema (that has email, password, profile etc.) with 1 custom field - an array that is initially empty (when the user is created).

I am using the useraccounts package. I have tried a couple different solutions using aldeed:collections2 and matb33:collection-hooks, but couldn’t find a way.

Can someone help me out?


You can simply create a SimpleSchema with the additional fields and attach it to the collection. The new fields will be merged with the already attached schema.

Thanks! It worked! :smiley:

1 Like