Provides API endpoints related to permissions
Summary
Functions
Beta users
Bulk index groups
Bulk index memberships for a group
Bulk index users
Delete group
Delete membership
Delete user
Index group
Index membership
Index user
Schedules the processing of group memberships
Functions
@spec betausers(body :: Gleanex.Indexing.GreenlistUsersRequest.t(), opts :: keyword()) :: :ok | {:error, Gleanex.Error.t()}
Beta users
Allow the datasource be visible to the specified beta users. The default behaviour is datasource being visible to all users if it is enabled and not visible to any user if it is not enabled.
Request Body
Content Types: application/json
@spec bulkindexgroups( body :: Gleanex.Indexing.BulkIndexGroupsRequest.t(), opts :: keyword() ) :: :ok | {:error, Gleanex.Error.t()}
Bulk index groups
Replaces the groups in a datasource using paginated batch API calls. Please refer to the bulk indexing documentation for an explanation of how to use bulk endpoints. Note: Any groups deleted from the existing set will have their associated memberships deleted as well.
Request Body
Content Types: application/json
@spec bulkindexmemberships( body :: Gleanex.Indexing.BulkIndexMembershipsRequest.t(), opts :: keyword() ) :: :ok | {:error, Gleanex.Error.t()}
Bulk index memberships for a group
Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer to the bulk indexing documentation for an explanation of how to use bulk endpoints.
Request Body
Content Types: application/json
@spec bulkindexusers( body :: Gleanex.Indexing.BulkIndexUsersRequest.t(), opts :: keyword() ) :: :ok | {:error, Gleanex.Error.t()}
Bulk index users
Replaces the users in a datasource using paginated batch API calls. Please refer to the bulk indexing documentation for an explanation of how to use bulk endpoints. Note: Any users deleted from the existing set will have their associated memberships deleted as well.
Request Body
Content Types: application/json
@spec deletegroup(body :: Gleanex.Indexing.DeleteGroupRequest.t(), opts :: keyword()) :: :ok | {:error, Gleanex.Error.t()}
Delete group
Delete group from the datasource. Silently succeeds if group is not present. Note: All memberships associated with the deleted group will also be deleted.
Request Body
Content Types: application/json
@spec deletemembership( body :: Gleanex.Indexing.DeleteMembershipRequest.t(), opts :: keyword() ) :: :ok | {:error, Gleanex.Error.t()}
Delete membership
Delete membership to a group in the specified datasource. Silently succeeds if membership is not present.
Request Body
Content Types: application/json
@spec deleteuser(body :: Gleanex.Indexing.DeleteUserRequest.t(), opts :: keyword()) :: :ok | {:error, Gleanex.Error.t()}
Delete user
Delete the user from the datasource. Silently succeeds if user is not present. Note: All memberships associated with the deleted user will also be deleted.
Request Body
Content Types: application/json
@spec indexgroup(body :: Gleanex.Indexing.IndexGroupRequest.t(), opts :: keyword()) :: :ok | {:error, Gleanex.Error.t()}
Index group
Add or update a group in the datasource.
Request Body
Content Types: application/json
@spec indexmembership( body :: Gleanex.Indexing.IndexMembershipRequest.t(), opts :: keyword() ) :: :ok | {:error, Gleanex.Error.t()}
Index membership
Add the memberships of a group in the datasource.
Request Body
Content Types: application/json
@spec indexuser(body :: Gleanex.Indexing.IndexUserRequest.t(), opts :: keyword()) :: :ok | {:error, Gleanex.Error.t()}
Index user
Adds a datasource user or updates an existing user.
Request Body
Content Types: application/json
@spec processallmemberships( body :: Gleanex.Indexing.ProcessAllMembershipsRequest.t(), opts :: keyword() ) :: :ok | {:error, Gleanex.Error.t()}
Schedules the processing of group memberships
Schedules the immediate processing of all group memberships uploaded through the indexing API. By default the uploaded group memberships will be processed asynchronously but this API can be used to schedule processing of all memberships on demand.
Request Body
Content Types: application/json