sym.sdk.user¶
Representations of Users in both Sym and third parties.
Classes
The atomic representation of a user in Sym. |
|
Represents a |
|
UserRoles represent very basic permission sets for users in the Sym platform. |
- class sym.sdk.user.User¶
Bases:
sym.sdk.resource.SymBaseResource
The atomic representation of a user in Sym.
UserIdentity
, which are used for referencing said user in external systems.- dict()¶
Represent this resource as a dictionary.
- property identities¶
Retrieves the set of identities associated with this
User
, grouped by service type.A mapping of service types to lists of
UserIdentity
.
- identity(service_type: str, service_id: Optional[str] = None) Optional[sym.sdk.user.UserIdentity] ¶
Retrieves this
User
’sUserIdentity
for a particular external system.External systems specified by a service_type, and optionally a service_id.
- Parameters
service_type – The name of one of Sym’s
integrations
.service_id – An identifier for an instance of a service, such as a Slack Workspace ID.
- Returns
A
UserIdentity
, or None if no identity is found for the Integration.
- class sym.sdk.user.UserIdentity¶
Bases:
sym.sdk.resource.SymBaseResource
Represents a
User
’s identity in an external system such as Slack or PagerDuty.- dict()¶
Represent this resource as a dictionary.
- property service_id¶
The ID of the external system providing the identity.
For example, “T123ABC” for a Slack Workspace.
- class sym.sdk.user.UserRole(value)¶
-
UserRoles represent very basic permission sets for users in the Sym platform.
UserRoles are defined in descending order of permissions. Each role should include all permissions of the roles below it.
- ADMIN = 'admin'¶
Admins are allowed to do anything. (e.g. Use symflow CLI, run Flows, apply Terraform)
- GUEST = 'guest'¶
Guests can approve/deny/revoke requests, if the Flow is configured to allow guest interactions
- MEMBER = 'member'¶
Members can run Flows and interact with requests.