Profile

Users Profile Set

POST
/users.profile.set

Set the profile information for a user.

Authorization

slackAuth users.profile:write
AuthorizationBearer <token>

In: header

Scope: users.profile:write

Header Parameters

token*string

Authentication token. Requires scope: users.profile:write

Content-Type*"application/x-www-form-urlencoded"

Value in

  • "application/x-www-form-urlencoded"

Request Body

application/x-www-form-urlencoded

name?string

Name of a single key to set. Usable only if profile is not passed.

profile?string

Collection of key:value pairs presented as a URL-encoded JSON hash. At most 50 fields may be set. Each field name is limited to 255 characters.

user?string

ID of user to change. This argument may only be specified by team admins on paid teams.

value?string

Value to set a single key to. Usable only if profile is not passed.

Response Body

application/json

application/json

curl -X POST "https://example.com/users.profile.set" \  -H "token: string" \  -H "Content-Type: application/x-www-form-urlencoded" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d ''
{  "email_pending": "user@example.com",  "ok": "True",  "profile": {    "always_active": true,    "api_app_id": "string",    "avatar_hash": "string",    "bot_id": "string",    "display_name": "string",    "display_name_normalized": "string",    "email": "user@example.com",    "fields": [      {}    ],    "first_name": "string",    "guest_expiration_ts": 0,    "guest_invited_by": "string",    "image_1024": "http://example.com",    "image_192": "http://example.com",    "image_24": "http://example.com",    "image_32": "http://example.com",    "image_48": "http://example.com",    "image_512": "http://example.com",    "image_72": "http://example.com",    "image_original": "http://example.com",    "is_app_user": true,    "is_custom_image": true,    "is_restricted": true,    "is_ultra_restricted": true,    "last_avatar_image_hash": "string",    "last_name": "string",    "memberships_count": 0,    "name": "string",    "phone": "string",    "pronouns": "string",    "real_name": "string",    "real_name_normalized": "string",    "skype": "string",    "status_default_emoji": "string",    "status_default_text": "string",    "status_default_text_canonical": "string",    "status_emoji": "string",    "status_expiration": 0,    "status_text": "string",    "status_text_canonical": "string",    "team": "string",    "title": "string",    "updated": 0,    "user_id": "string",    "username": "string"  },  "username": "string"}