The Slack Get User Profile action is used to retrieve a user's profile information within Slack. It enables your application to access Slack user data. It is particularly preferred in scenarios such as team management, synchronizing user information, or performing profile-based operations.
Technical Specifications
Get Profile: The Slack Get User Profile action returns the profile information of the relevant user based on the specified user_id parameter.
Parameter Compatibility:
settings (Object – required): Configuration information required for Slack integration.
user_id (String – required): The Slack ID of the user whose profile information will be retrieved.
Value Binding: Users can enter fixed values or bind dynamic values (Action Result, Current, Form Component, Screen Input, etc.) via the Symbol Picker.
Web & Mobile Support: The action works seamlessly in both web and mobile applications.
Slack Get User Profile Action Application Steps
1. Defining the Action in UI Design
Open your project on the Kuika platform.
Go to the UI Design module and select the screen where you want to perform the user profile retrieval.
Add a button (e.g., “Get User Profile”).
Select the button and add the OnClick → Slack → Get User Profile action from the + ADD ACTION menu.
2. Configuring Parameters
settings (required): Select the predefined settings for Slack integration.
user_id (required): Enter the user's Slack ID or link it with a form input.
Use Case: Displaying User Profile in Slack
In a team management application, managers may want to quickly access employees' Slack profiles.
Steps:
Add a form in UI Design:
User ID (Text Input → U12345)
Add a “Get Profile” button.
Add the OnClick → Slack → Slack Get User Profile action.
Link the parameters to the forms via the Symbol Picker.
Slack Get User Profile Advanced Customizations
Dynamic User Selection: The User ID can be selected via dropdown or autocomplete.
Conditional Display: If the profile information cannot be found, you can display a “User not found” message.
Transferring Results to Other Actions: User profile information can be used on another page with a Set Value action.
Technical Risks and Controls
The settings parameter must not be empty, otherwise the action will not work.
user_id must be in the correct format (e.g., U12345).
Slack API access permissions must be set correctly.