Package com.daml.ledger.api.v1.admin
Class UserManagementServiceGrpc.UserManagementServiceFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<UserManagementServiceGrpc.UserManagementServiceFutureStub>
-
- com.daml.ledger.api.v1.admin.UserManagementServiceGrpc.UserManagementServiceFutureStub
-
- Enclosing class:
- UserManagementServiceGrpc
public static final class UserManagementServiceGrpc.UserManagementServiceFutureStub extends io.grpc.stub.AbstractFutureStub<UserManagementServiceGrpc.UserManagementServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service UserManagementService.Service to manage users and their rights for interacting with the Ledger API served by a participant node. The authorization rules for its RPCs are specified on the ``<RpcName>Request`` messages as boolean expressions over these facts: (1) ``HasRight(r)`` denoting whether the authenticated user has right ``r`` and (2) ``IsAuthenticatedUser(uid)`` denoting whether ``uid`` is the empty string or equal to the id of the authenticated user. (3) ``IsAuthenticatedIdentityProviderAdmin(idp)`` denoting whether ``idp`` is equal to the ``identity_provider_id`` of the authenticated user and the user has an IdentityProviderAdmin right. If `user_id` is set to the empty string (the default), then the data for the authenticated user will be retrieved. If `identity_provider_id` is set to an empty string, then it's effectively set to the value of access token's 'iss' field if that is provided. If `identity_provider_id` remains an empty string, the default identity provider will be assumed. The fields of request messages (and sub-messages) are marked either as ``Optional`` or ``Required``: (1) ``Optional`` denoting the client may leave the field unset when sending a request. (2) ``Required`` denoting the client must set the field to a non-default value when sending a request. A user resource consists of: (1) a set of properties represented by the ``User`` message, (2) a set of user rights, where each right is represented by the ``Right`` message. A user resource, once it has been created, can be modified. In order to update the properties represented by the ``User`` message use the ``UpdateUser`` RPC. The only fields that can be modified are those marked as ``Modifiable``. In order to grant or revoke user rights use ``GrantRights' and ``RevokeRights`` RPCs.
-
-
Method Summary
-
-
-
Method Detail
-
build
protected UserManagementServiceGrpc.UserManagementServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<UserManagementServiceGrpc.UserManagementServiceFutureStub>
-
createUser
public com.google.common.util.concurrent.ListenableFuture<UserManagementServiceOuterClass.CreateUserResponse> createUser(UserManagementServiceOuterClass.CreateUserRequest request)
Create a new user.
-
getUser
public com.google.common.util.concurrent.ListenableFuture<UserManagementServiceOuterClass.GetUserResponse> getUser(UserManagementServiceOuterClass.GetUserRequest request)
Get the user data of a specific user or the authenticated user.
-
updateUser
public com.google.common.util.concurrent.ListenableFuture<UserManagementServiceOuterClass.UpdateUserResponse> updateUser(UserManagementServiceOuterClass.UpdateUserRequest request)
Update selected modifiable attribute of a user resource described by the ``User`` message.
-
deleteUser
public com.google.common.util.concurrent.ListenableFuture<UserManagementServiceOuterClass.DeleteUserResponse> deleteUser(UserManagementServiceOuterClass.DeleteUserRequest request)
Delete an existing user and all its rights.
-
listUsers
public com.google.common.util.concurrent.ListenableFuture<UserManagementServiceOuterClass.ListUsersResponse> listUsers(UserManagementServiceOuterClass.ListUsersRequest request)
List all existing users.
-
grantUserRights
public com.google.common.util.concurrent.ListenableFuture<UserManagementServiceOuterClass.GrantUserRightsResponse> grantUserRights(UserManagementServiceOuterClass.GrantUserRightsRequest request)
Grant rights to a user. Granting rights does not affect the resource version of the corresponding user.
-
revokeUserRights
public com.google.common.util.concurrent.ListenableFuture<UserManagementServiceOuterClass.RevokeUserRightsResponse> revokeUserRights(UserManagementServiceOuterClass.RevokeUserRightsRequest request)
Revoke rights from a user. Revoking rights does not affect the resource version of the corresponding user.
-
listUserRights
public com.google.common.util.concurrent.ListenableFuture<UserManagementServiceOuterClass.ListUserRightsResponse> listUserRights(UserManagementServiceOuterClass.ListUserRightsRequest request)
List the set of all rights granted to a user.
-
updateUserIdentityProviderId
public com.google.common.util.concurrent.ListenableFuture<UserManagementServiceOuterClass.UpdateUserIdentityProviderResponse> updateUserIdentityProviderId(UserManagementServiceOuterClass.UpdateUserIdentityProviderRequest request)
Update the assignment of a user from one IDP to another.
-
-