Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

[SOLVED] How do I get all teams a user has already joined?

$
0
0

Calling /initial_load returns this Json :

{
    "user": {
        "id": "atmuq3rojiftxqwr7iwmqtubaw",
        "create_at": 1470910198366,
        "update_at": 1470910198722,
        "delete_at": 0,
        "username": "user1",
        "auth_data": "",
        "auth_service": "",
        "email": "user1@test.fr",
        "nickname": "",
        "first_name": "",
        "last_name": "",
        "roles": "system_admin",
        "last_activity_at": 1470910199882,
        "allow_marketing": true,
        "notify_props": {
            "all": "true",
            "channel": "true",
            "desktop": "all",
            "desktop_sound": "true",
            "email": "true",
            "first_name": "false",
            "mention_keys": "user1,@user1"
        },
    "last_password_update": 1470910198366,
    "locale": "en",
    },
    "team_members": [1]
    0:  {
        "team_id": "ec8jdcujzfdnzpjihpwayp4aqc"
        "user_id": "atmuq3rojiftxqwr7iwmqtubaw"
        "roles": "admin"
    },
    "teams": [1]
    0:  {
        "id": "ec8jdcujzfdnzpjihpwayp4aqc",
        "create_at": 1470910198709,
        "update_at": 1470910198709,
        "delete_at": 0,
        "display_name": "application",
        "name": "application",
        "email": "",
        "type": "O",
        "company_name": "",
        "allowed_domains": "",
        "invite_id": "b7q5rx6iftby3rt5uk99xp7c7o",
        "allow_open_invite": true
    },
    "direct_profiles": {},
    "preferences": [1]
    0:  {
        "user_id": "atmuq3rojiftxqwr7iwmqtubaw",
        "category": "tutorial_step",
        "name": "atmuq3rojiftxqwr7iwmqtubaw",
        "value": "0"
    },
    "client_cfg": {
        "AboutLink": "https://about.mattermost.com/default-about/",
        "AllowCorsFrom": "",
        "BuildDate": "Fri May 27 18:08:10 UTC 2016",
        "BuildEnterpriseReady": "false",
        "BuildHash": "cb745475452a9fc8ef3a9fedf6b34af7d05adba9",
        "BuildNumber": "3.0.3",
        "EnableCommands": "false",
        "EnableDeveloper": "false",
        "EnableIncomingWebhooks": "false",
        "EnableOAuthServiceProvider": "false",
        "EnableOnlyAdminIntegrations": "true",
        "EnableOpenServer": "true",
        "EnableOutgoingWebhooks": "false",
        "EnablePostIconOverride": "false",
        "EnablePostUsernameOverride": "false",
        "EnablePublicLink": "false",
        "EnableSignInWithEmail": "true",
        "EnableSignInWithUsername": "true",
        "EnableSignUpWithEmail": "true",
        "EnableSignUpWithGitLab": "false",
        "EnableSignUpWithGoogle": "false",
        "EnableTeamCreation": "true",
        "EnableUserCreation": "true",
        "FeedbackEmail": "",
        "GoogleDeveloperKey": "",
        "HelpLink": "https://about.mattermost.com/default-help/",
        "PrivacyPolicyLink": "https://about.mattermost.com/default-privacy-policy/",
        "ProfileHeight": "128",
        "ProfileWidth": "128",
        "ReportAProblemLink": "https://about.mattermost.com/default-report-problem/",
        "RequireEmailVerification": "false",
        "RestrictDirectMessage": "any",
        "RestrictTeamNames": "true",
        "SegmentDeveloperKey": "",
        "SendEmailNotifications": "false",
        "ShowEmailAddress": "true",
        "SiteName": "Mattermost",
        "SupportEmail": "feedback@mattermost.com",
        "TermsOfServiceLink": "https://about.mattermost.com/default-terms/",
        "Version": "3.0.0",
        "WebsocketPort": "80",
        "WebsocketSecurePort": "443"
    },
    "license_cfg": {
        "IsLicensed": "false"
    },
    "no_accounts": false
}

Like you can see there is informations about teams. This time it's only teams of the user.

I think it's your parser no?


Viewing all articles
Browse latest Browse all 25778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>