Class MeRequestBuilder
Builds and executes requests for operations under \projects{projectId}\users\me
public class MeRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderMeRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
MeRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new MeRequestBuilder and sets the default values.
public MeRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter)
Parameters
pathParameters
Dictionary<string, object>Path parameters for the request
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
MeRequestBuilder(string, IRequestAdapter)
Instantiates a new MeRequestBuilder and sets the default values.
public MeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
Parameters
rawUrl
stringThe raw URL to use for the request builder.
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
Methods
GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Returns the current user permissions.Note that if a user with Create for my company permissions attempts to assign a user from a another company to the issue, it will return an error. Currently, you can only retrieve users that are associated with an account <https://forge.autodesk.com/en/docs/acc/v1/reference/http/users-GET/>
_. We will be supporting retrieving project users by companies in the near future.You can verify a user's assignment permissions by checking the permittedActions
or permissionLevels
attributes.This operation is available to everyone... include:: ../../../../_snippets/not-backward-compatible.rst
public Task<UsersMeDefinition?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<DefaultQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- ErrorResponseDefinition
When receiving a 400 status code
- ErrorResponseDefinition
When receiving a 404 status code
- ErrorResponseDefinition
When receiving a 500 status code
ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>?)
Returns the current user permissions.Note that if a user with Create for my company permissions attempts to assign a user from a another company to the issue, it will return an error. Currently, you can only retrieve users that are associated with an account <https://forge.autodesk.com/en/docs/acc/v1/reference/http/users-GET/>
_. We will be supporting retrieving project users by companies in the near future.You can verify a user's assignment permissions by checking the permittedActions
or permissionLevels
attributes.This operation is available to everyone... include:: ../../../../_snippets/not-backward-compatible.rst
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<DefaultQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
WithUrl(string)
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
public MeRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.