client.users.get_me

A method of the Users endpoint.

get_me() Response

Show info about the logged-in user

API URL: GET /users/me

import civis
client = civis.APIClient()
response = client.users.get_me(...)
Returns:
civis.Response
  • idint

    The ID of this user.

  • namestr

    This user’s name.

  • emailstr

    This user’s email address.

  • usernamestr

    This user’s username.

  • initialsstr

    This user’s initials.

  • last_checked_announcementsstr (date-time)

    The date and time at which the user last checked their announcements.

  • feature_flagscivis.Response

    The feature flag settings for this user.

  • rolesList[str]

    The roles this user has, listed by slug.

  • preferencescivis.Response

    This user’s preferences.

  • custom_brandingstr

    The branding of Platform for this user.

  • primary_group_idint

    The ID of the primary group of this user.

  • groupsList[civis.Response]

    An array of all the groups this user is in.

    • idint

      The ID of this group.

    • namestr

      The name of this group.

    • slugstr

      The slug of this group.

    • organization_idint

      The ID of the organization associated with this group.

    • organization_namestr

      The name of the organization associated with this group.

  • organization_namestr

    The name of the organization the user belongs to.

  • organization_slugstr

    The slug of the organization the user belongs to.

  • organization_default_theme_idint

    The ID of the organizations’s default theme.

  • created_atstr (date-time)

    The date and time when the user was created.

  • sign_in_countint

    The number of times the user has signed in.

  • assuming_rolebool

    Whether the user is assuming this role or not.

  • role_assumercivis.Response

    Details about the role assumer.

  • assuming_adminbool

    Whether the user is assuming admin.

  • assuming_admin_expirationstr (date-time)

    When the user’s admin role is set to expire.

  • superadmin_mode_expirationstr (date-time)

    The user is in superadmin mode when set to a DateTime. The user is not in superadmin mode when set to null.

  • disable_non_compliant_fedramp_featuresbool

    Whether to disable non-compliant fedramp features.

  • persona_rolestr

    The high-level role representing the current user’s main permissions.

  • created_by_idint

    The ID of the user who created this user.

  • last_updated_by_idint

    The ID of the user who last updated this user.