Interface SlackUserIF
- All Superinterfaces:
SlackUserCore
- All Known Implementing Classes:
SlackUser
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()For external (Slack Connect) users cached against a workspace they do not belong to, this holds their real home workspace team ID;getTeamId()then holds the workspace the user is cached/scoped under.isAdmin()isBot()default booleanWhether this user is external (a Slack Connect member) relative to the workspace this record is scoped to.isOwner()Methods inherited from interface com.hubspot.slack.client.models.users.SlackUserCore
getId, getUsername
-
Method Details
-
getProfile
Optional<UserProfile> getProfile() -
isDeleted
-
getColor
-
isAdmin
-
isOwner
-
getTeamId
-
getExternalTeamId
For external (Slack Connect) users cached against a workspace they do not belong to, this holds their real home workspace team ID;getTeamId()then holds the workspace the user is cached/scoped under. Empty for regular (internal) users, so its presence is the single source of truth for whether a user is external. -
isExternal
@Derived default boolean isExternal()Whether this user is external (a Slack Connect member) relative to the workspace this record is scoped to. Derived purely fromgetExternalTeamId()— there is no separate persisted/serialized field, so all logic can rely on this convenience method. -
getRealName
-
isPrimaryOwner
-
isRestricted
-
isUltraRestricted
-
isBot
-
isAppUser
-
getTimezone
-
getTimezoneLabel
-
getTimezoneOffset
-
getRawUpdated
-
getLocale
-
getUpdatedAt
-