magpie.api.management.user.user_views

User Views, both for specific user-name provided as request path variable and special keyword for logged session user.

Attributes

LOGGER

Functions

get_users_view(request)

List all registered user names or details.

create_user_view(request)

Create a new user.

update_user_view(request)

Update user information by user name.

get_user_view(request)

Get user information by name.

delete_user_view(request)

Delete a user by name.

get_user_groups_view(request)

List all groups a user belongs to.

assign_user_group_view(request)

Assign a user to a group.

delete_user_group_view(request)

Removes a user from a group.

get_user_resources_view(request)

List all resources a user has permissions on.

get_user_resource_permissions_view(request)

List all permissions a user has on a specific resource.

create_user_resource_permissions_view(request)

Create a permission on specific resource for a user.

replace_user_resource_permissions_view(request)

Create or modify an existing permission on a resource for a user.

delete_user_resource_permissions_view(request)

Delete a permission from a specific resource for a user (not including his groups permissions).

delete_user_resource_permission_name_view(request)

Delete a permission by name from a resource for a user (not including his groups permissions).

get_user_services_view(request)

List all services a user has permissions on.

get_user_service_permissions_view(request)

List all permissions a user has on a service.

create_user_service_permissions_view(request)

Create a permission on a service for a user.

replace_user_service_permissions_view(request)

Create or modify an existing permission on a service for a user.

delete_user_service_permissions_view(request)

Delete a permission from a service for a user (not including his groups permissions).

delete_user_service_permission_name_view(request)

Delete a permission by name from a service for a user (not including his groups permissions).

get_user_service_resources_view(request)

List all resources under a service a user has permission on.

Module Contents

magpie.api.management.user.user_views.LOGGER[source]
magpie.api.management.user.user_views.get_users_view(request)[source]

List all registered user names or details.

magpie.api.management.user.user_views.create_user_view(request)[source]

Create a new user.

magpie.api.management.user.user_views.update_user_view(request)[source]

Update user information by user name.

magpie.api.management.user.user_views.get_user_view(request)[source]

Get user information by name.

magpie.api.management.user.user_views.delete_user_view(request)[source]

Delete a user by name.

magpie.api.management.user.user_views.get_user_groups_view(request)[source]

List all groups a user belongs to.

Groups can be filtered by status depending of input arguments.

magpie.api.management.user.user_views.assign_user_group_view(request)[source]

Assign a user to a group.

magpie.api.management.user.user_views.delete_user_group_view(request)[source]

Removes a user from a group.

magpie.api.management.user.user_views.get_user_resources_view(request)[source]

List all resources a user has permissions on.

magpie.api.management.user.user_views.get_user_resource_permissions_view(request)[source]

List all permissions a user has on a specific resource.

magpie.api.management.user.user_views.create_user_resource_permissions_view(request)[source]

Create a permission on specific resource for a user.

magpie.api.management.user.user_views.replace_user_resource_permissions_view(request)[source]

Create or modify an existing permission on a resource for a user.

Can be used to adjust permission modifiers.

magpie.api.management.user.user_views.delete_user_resource_permissions_view(request)[source]

Delete a permission from a specific resource for a user (not including his groups permissions).

magpie.api.management.user.user_views.delete_user_resource_permission_name_view(request)[source]

Delete a permission by name from a resource for a user (not including his groups permissions).

magpie.api.management.user.user_views.get_user_services_view(request)[source]

List all services a user has permissions on.

magpie.api.management.user.user_views.get_user_service_permissions_view(request)[source]

List all permissions a user has on a service.

magpie.api.management.user.user_views.create_user_service_permissions_view(request)[source]

Create a permission on a service for a user.

magpie.api.management.user.user_views.replace_user_service_permissions_view(request)[source]

Create or modify an existing permission on a service for a user.

Can be used to adjust permission modifiers.

magpie.api.management.user.user_views.delete_user_service_permissions_view(request)[source]

Delete a permission from a service for a user (not including his groups permissions).

magpie.api.management.user.user_views.delete_user_service_permission_name_view(request)[source]

Delete a permission by name from a service for a user (not including his groups permissions).

magpie.api.management.user.user_views.get_user_service_resources_view(request)[source]

List all resources under a service a user has permission on.