Mattermost Peer-to-Peer Forum

Bulk Data Loading - User Team Membership Theme


#1

I have a question regarding the bulk data loading. on the documentation for 5.6.2 it states that the theme can be set with a hex color code in JSON format. But the documentation contradicts itself regarding the type of data that can be for the key “theme” in the UserTeamMembership object. I was wondering is the documentation close to correct for the format of the value. should it be a string that includes JSON like

“{“color”:”#444"}"

Or should it be an object?

{“color”:"#444"}

Or does it reference a theme name?

Thanks in advance for the help.

Documentation is here: https://docs.mattermost.com/deployment/bulk-loading.html#fields-of-the-userteammembership-object

More info, This is the example User object
https://docs.mattermost.com/deployment/bulk-loading.html#example-user-object


#2

Thanks @firestar for the question! The sample given in the example user object should be correct.

https://docs.mattermost.com/deployment/bulk-loading.html#example-user-object

So the theme can be supplied in the following format

{
  "type": "user",
  "user": {
    ...
    "teams": [
      {
        "name": "team-name",
        "theme": [
          {
            "awayIndicator":"#DBBD4E",
            ...
            "sidebarUnreadText":"#333333",
            }

The names awayIndicator and others are specified in our theme documentation here with a few custom theme examples here.

Let me know if I can help clarify anything :slight_smile: