Help us shape the future of Go! Take the 2026 Go Developer Survey

userswithuserprincipalname

package
v1.105.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsersWithUserPrincipalNameRequestBuilder

type UsersWithUserPrincipalNameRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

UsersWithUserPrincipalNameRequestBuilder provides operations to manage the collection of user entities.

func NewUsersWithUserPrincipalNameRequestBuilder

NewUsersWithUserPrincipalNameRequestBuilder instantiates a new UsersWithUserPrincipalNameRequestBuilder and sets the default values.

func NewUsersWithUserPrincipalNameRequestBuilderInternal

func NewUsersWithUserPrincipalNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, userPrincipalName *string) *UsersWithUserPrincipalNameRequestBuilder

NewUsersWithUserPrincipalNameRequestBuilderInternal instantiates a new UsersWithUserPrincipalNameRequestBuilder and sets the default values.

func (*UsersWithUserPrincipalNameRequestBuilder) Delete

Delete delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems. returns a ODataError error when the service returns a 4XX or 5XX status code Find more info here

func (*UsersWithUserPrincipalNameRequestBuilder) Get

Get retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. returns a Userable when successful returns a ODataError error when the service returns a 4XX or 5XX status code Find more info here

func (*UsersWithUserPrincipalNameRequestBuilder) Patch

Patch update the properties of a user object. To use this API to update an agentUser, specify an @odata.type property with a value of #microsoft.graph.agentUser in the request body. returns a Userable when successful returns a ODataError error when the service returns a 4XX or 5XX status code Find more info here

func (*UsersWithUserPrincipalNameRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems. returns a *RequestInformation when successful

func (*UsersWithUserPrincipalNameRequestBuilder) ToGetRequestInformation

ToGetRequestInformation retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. returns a *RequestInformation when successful

func (*UsersWithUserPrincipalNameRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation update the properties of a user object. To use this API to update an agentUser, specify an @odata.type property with a value of #microsoft.graph.agentUser in the request body. returns a *RequestInformation when successful

func (*UsersWithUserPrincipalNameRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *UsersWithUserPrincipalNameRequestBuilder when successful

type UsersWithUserPrincipalNameRequestBuilderDeleteRequestConfiguration

type UsersWithUserPrincipalNameRequestBuilderDeleteRequestConfiguration struct {
	// Request headers
	Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
	// Request options
	Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}

UsersWithUserPrincipalNameRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.

type UsersWithUserPrincipalNameRequestBuilderGetQueryParameters

type UsersWithUserPrincipalNameRequestBuilderGetQueryParameters struct {
	// Expand related entities
	Expand []string "uriparametername:\"%24expand\""
	// Select properties to be returned
	Select []string "uriparametername:\"%24select\""
}

UsersWithUserPrincipalNameRequestBuilderGetQueryParameters retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details.

type UsersWithUserPrincipalNameRequestBuilderGetRequestConfiguration

type UsersWithUserPrincipalNameRequestBuilderGetRequestConfiguration struct {
	// Request headers
	Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
	// Request options
	Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
	// Request query parameters
	QueryParameters *UsersWithUserPrincipalNameRequestBuilderGetQueryParameters
}

UsersWithUserPrincipalNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.

type UsersWithUserPrincipalNameRequestBuilderPatchRequestConfiguration

type UsersWithUserPrincipalNameRequestBuilderPatchRequestConfiguration struct {
	// Request headers
	Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
	// Request options
	Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}

UsersWithUserPrincipalNameRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL