user

package
v0.20241025.1143247 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user Documentation

The user SDK allows for interaction with Microsoft Graph users (API Version beta).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user"

Client Initialization

client := user.NewUserClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: UserClient.AssignLicense

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.AssignLicenseRequest{
	// ...
}


read, err := client.AssignLicense(ctx, id, payload, user.DefaultAssignLicenseOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.ChangePassword

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.ChangePasswordRequest{
	// ...
}


read, err := client.ChangePassword(ctx, id, payload, user.DefaultChangePasswordOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.CheckMemberGroups

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.CheckMemberGroupsRequest{
	// ...
}


// alternatively `client.CheckMemberGroups(ctx, id, payload, user.DefaultCheckMemberGroupsOperationOptions())` can be used to do batched pagination
items, err := client.CheckMemberGroupsComplete(ctx, id, payload, user.DefaultCheckMemberGroupsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: UserClient.CheckMemberObjects

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.CheckMemberObjectsRequest{
	// ...
}


// alternatively `client.CheckMemberObjects(ctx, id, payload, user.DefaultCheckMemberObjectsOperationOptions())` can be used to do batched pagination
items, err := client.CheckMemberObjectsComplete(ctx, id, payload, user.DefaultCheckMemberObjectsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: UserClient.CreateConvertExternalToInternalMemberUser

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.CreateConvertExternalToInternalMemberUserRequest{
	// ...
}


read, err := client.CreateConvertExternalToInternalMemberUser(ctx, id, payload, user.DefaultCreateConvertExternalToInternalMemberUserOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.CreateExportPersonalData

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.CreateExportPersonalDataRequest{
	// ...
}


read, err := client.CreateExportPersonalData(ctx, id, payload, user.DefaultCreateExportPersonalDataOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.CreateGetsUserOwnedObject

ctx := context.TODO()

payload := user.CreateGetsUserOwnedObjectRequest{
	// ...
}


read, err := client.CreateGetsUserOwnedObject(ctx, payload, user.DefaultCreateGetsUserOwnedObjectOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.CreateInvalidateAllRefreshToken

ctx := context.TODO()
id := user.NewUserID("userId")

read, err := client.CreateInvalidateAllRefreshToken(ctx, id, user.DefaultCreateInvalidateAllRefreshTokenOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.CreateUnblockManagedApp

ctx := context.TODO()
id := user.NewUserID("userId")

read, err := client.CreateUnblockManagedApp(ctx, id, user.DefaultCreateUnblockManagedAppOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.CreateUser

ctx := context.TODO()

payload := user.User{
	// ...
}


read, err := client.CreateUser(ctx, payload, user.DefaultCreateUserOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.CreateValidatesPassword

ctx := context.TODO()

payload := user.CreateValidatesPasswordRequest{
	// ...
}


read, err := client.CreateValidatesPassword(ctx, payload, user.DefaultCreateValidatesPasswordOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.CreateValidatesProperty

ctx := context.TODO()

payload := user.CreateValidatesPropertyRequest{
	// ...
}


read, err := client.CreateValidatesProperty(ctx, payload, user.DefaultCreateValidatesPropertyOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.DeletePasswordSingleSignOnCredentials

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.DeletePasswordSingleSignOnCredentialsRequest{
	// ...
}


read, err := client.DeletePasswordSingleSignOnCredentials(ctx, id, payload, user.DefaultDeletePasswordSingleSignOnCredentialsOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.DeleteUser

ctx := context.TODO()
id := user.NewUserID("userId")

read, err := client.DeleteUser(ctx, id, user.DefaultDeleteUserOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.FindMeetingTimes

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.FindMeetingTimesRequest{
	// ...
}


read, err := client.FindMeetingTimes(ctx, id, payload, user.DefaultFindMeetingTimesOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.GetMailTips

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.GetMailTipsRequest{
	// ...
}


// alternatively `client.GetMailTips(ctx, id, payload, user.DefaultGetMailTipsOperationOptions())` can be used to do batched pagination
items, err := client.GetMailTipsComplete(ctx, id, payload, user.DefaultGetMailTipsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: UserClient.GetMemberGroups

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.GetMemberGroupsRequest{
	// ...
}


// alternatively `client.GetMemberGroups(ctx, id, payload, user.DefaultGetMemberGroupsOperationOptions())` can be used to do batched pagination
items, err := client.GetMemberGroupsComplete(ctx, id, payload, user.DefaultGetMemberGroupsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: UserClient.GetMemberObjects

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.GetMemberObjectsRequest{
	// ...
}


// alternatively `client.GetMemberObjects(ctx, id, payload, user.DefaultGetMemberObjectsOperationOptions())` can be used to do batched pagination
items, err := client.GetMemberObjectsComplete(ctx, id, payload, user.DefaultGetMemberObjectsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: UserClient.GetPasswordSingleSignOnCredentials

ctx := context.TODO()
id := user.NewUserID("userId")

// alternatively `client.GetPasswordSingleSignOnCredentials(ctx, id, user.DefaultGetPasswordSingleSignOnCredentialsOperationOptions())` can be used to do batched pagination
items, err := client.GetPasswordSingleSignOnCredentialsComplete(ctx, id, user.DefaultGetPasswordSingleSignOnCredentialsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: UserClient.GetUser

ctx := context.TODO()
id := user.NewUserID("userId")

read, err := client.GetUser(ctx, id, user.DefaultGetUserOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.GetsCount

ctx := context.TODO()


read, err := client.GetsCount(ctx, user.DefaultGetsCountOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.ListGetsByIds

ctx := context.TODO()

payload := user.ListGetsByIdsRequest{
	// ...
}


// alternatively `client.ListGetsByIds(ctx, payload, user.DefaultListGetsByIdsOperationOptions())` can be used to do batched pagination
items, err := client.ListGetsByIdsComplete(ctx, payload, user.DefaultListGetsByIdsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: UserClient.ListUsers

ctx := context.TODO()


// alternatively `client.ListUsers(ctx, user.DefaultListUsersOperationOptions())` can be used to do batched pagination
items, err := client.ListUsersComplete(ctx, user.DefaultListUsersOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: UserClient.RemoveAllDevicesFromManagement

ctx := context.TODO()
id := user.NewUserID("userId")

read, err := client.RemoveAllDevicesFromManagement(ctx, id, user.DefaultRemoveAllDevicesFromManagementOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.ReprocessLicenseAssignment

ctx := context.TODO()
id := user.NewUserID("userId")

read, err := client.ReprocessLicenseAssignment(ctx, id, user.DefaultReprocessLicenseAssignmentOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.Restore

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.RestoreRequest{
	// ...
}


read, err := client.Restore(ctx, id, payload, user.DefaultRestoreOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.RetryServiceProvisioning

ctx := context.TODO()
id := user.NewUserID("userId")

read, err := client.RetryServiceProvisioning(ctx, id, user.DefaultRetryServiceProvisioningOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.RevokeSignInSessions

ctx := context.TODO()
id := user.NewUserID("userId")

read, err := client.RevokeSignInSessions(ctx, id, user.DefaultRevokeSignInSessionsOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.SendMail

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.SendMailRequest{
	// ...
}


read, err := client.SendMail(ctx, id, payload, user.DefaultSendMailOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.TranslateExchangeIds

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.TranslateExchangeIdsRequest{
	// ...
}


// alternatively `client.TranslateExchangeIds(ctx, id, payload, user.DefaultTranslateExchangeIdsOperationOptions())` can be used to do batched pagination
items, err := client.TranslateExchangeIdsComplete(ctx, id, payload, user.DefaultTranslateExchangeIdsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: UserClient.UpdateUser

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.User{
	// ...
}


read, err := client.UpdateUser(ctx, id, payload, user.DefaultUpdateUserOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.WipeAndBlockManagedApps

ctx := context.TODO()
id := user.NewUserID("userId")

read, err := client.WipeAndBlockManagedApps(ctx, id, user.DefaultWipeAndBlockManagedAppsOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.WipeManagedAppRegistrationByDeviceTag

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.WipeManagedAppRegistrationByDeviceTagRequest{
	// ...
}


read, err := client.WipeManagedAppRegistrationByDeviceTag(ctx, id, payload, user.DefaultWipeManagedAppRegistrationByDeviceTagOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.WipeManagedAppRegistrationsByAzureAdDeviceId

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.WipeManagedAppRegistrationsByAzureAdDeviceIdRequest{
	// ...
}


read, err := client.WipeManagedAppRegistrationsByAzureAdDeviceId(ctx, id, payload, user.DefaultWipeManagedAppRegistrationsByAzureAdDeviceIdOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: UserClient.WipeManagedAppRegistrationsByDeviceTag

ctx := context.TODO()
id := user.NewUserID("userId")

payload := user.WipeManagedAppRegistrationsByDeviceTagRequest{
	// ...
}


read, err := client.WipeManagedAppRegistrationsByDeviceTag(ctx, id, payload, user.DefaultWipeManagedAppRegistrationsByDeviceTagOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignLicenseOperationOptions

type AssignLicenseOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultAssignLicenseOperationOptions

func DefaultAssignLicenseOperationOptions() AssignLicenseOperationOptions

func (AssignLicenseOperationOptions) ToHeaders

func (AssignLicenseOperationOptions) ToOData

func (AssignLicenseOperationOptions) ToQuery

type AssignLicenseOperationResponse

type AssignLicenseOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.User
}

type AssignLicenseRequest

type AssignLicenseRequest struct {
	AddLicenses    *[]beta.AssignedLicense `json:"addLicenses,omitempty"`
	RemoveLicenses *[]string               `json:"removeLicenses,omitempty"`
}

type ChangePasswordOperationOptions

type ChangePasswordOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultChangePasswordOperationOptions

func DefaultChangePasswordOperationOptions() ChangePasswordOperationOptions

func (ChangePasswordOperationOptions) ToHeaders

func (ChangePasswordOperationOptions) ToOData

func (ChangePasswordOperationOptions) ToQuery

type ChangePasswordOperationResponse

type ChangePasswordOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ChangePasswordRequest

type ChangePasswordRequest struct {
	CurrentPassword nullable.Type[string] `json:"currentPassword,omitempty"`
	NewPassword     nullable.Type[string] `json:"newPassword,omitempty"`
}

type CheckMemberGroupsCompleteResult

type CheckMemberGroupsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []string
}

type CheckMemberGroupsCustomPager

type CheckMemberGroupsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *CheckMemberGroupsCustomPager) NextPageLink() *odata.Link

type CheckMemberGroupsOperationOptions

type CheckMemberGroupsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultCheckMemberGroupsOperationOptions

func DefaultCheckMemberGroupsOperationOptions() CheckMemberGroupsOperationOptions

func (CheckMemberGroupsOperationOptions) ToHeaders

func (CheckMemberGroupsOperationOptions) ToOData

func (CheckMemberGroupsOperationOptions) ToQuery

type CheckMemberGroupsOperationResponse

type CheckMemberGroupsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]string
}

type CheckMemberGroupsRequest

type CheckMemberGroupsRequest struct {
	GroupIds *[]string `json:"groupIds,omitempty"`
}

type CheckMemberObjectsCompleteResult

type CheckMemberObjectsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []string
}

type CheckMemberObjectsCustomPager

type CheckMemberObjectsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *CheckMemberObjectsCustomPager) NextPageLink() *odata.Link

type CheckMemberObjectsOperationOptions

type CheckMemberObjectsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultCheckMemberObjectsOperationOptions

func DefaultCheckMemberObjectsOperationOptions() CheckMemberObjectsOperationOptions

func (CheckMemberObjectsOperationOptions) ToHeaders

func (CheckMemberObjectsOperationOptions) ToOData

func (CheckMemberObjectsOperationOptions) ToQuery

type CheckMemberObjectsOperationResponse

type CheckMemberObjectsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]string
}

type CheckMemberObjectsRequest

type CheckMemberObjectsRequest struct {
	Ids *[]string `json:"ids,omitempty"`
}

type ConvertIdResultOperationPredicate

type ConvertIdResultOperationPredicate struct {
}

func (ConvertIdResultOperationPredicate) Matches

type CreateConvertExternalToInternalMemberUserOperationOptions

type CreateConvertExternalToInternalMemberUserOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (CreateConvertExternalToInternalMemberUserOperationOptions) ToHeaders

func (CreateConvertExternalToInternalMemberUserOperationOptions) ToOData

func (CreateConvertExternalToInternalMemberUserOperationOptions) ToQuery

type CreateConvertExternalToInternalMemberUserOperationResponse

type CreateConvertExternalToInternalMemberUserOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ConversionUserDetails
}

type CreateConvertExternalToInternalMemberUserRequest

type CreateConvertExternalToInternalMemberUserRequest struct {
	Mail              nullable.Type[string] `json:"mail,omitempty"`
	PasswordProfile   *beta.PasswordProfile `json:"passwordProfile,omitempty"`
	UserPrincipalName nullable.Type[string] `json:"userPrincipalName,omitempty"`
}

type CreateExportPersonalDataOperationOptions

type CreateExportPersonalDataOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateExportPersonalDataOperationOptions

func DefaultCreateExportPersonalDataOperationOptions() CreateExportPersonalDataOperationOptions

func (CreateExportPersonalDataOperationOptions) ToHeaders

func (CreateExportPersonalDataOperationOptions) ToOData

func (CreateExportPersonalDataOperationOptions) ToQuery

type CreateExportPersonalDataOperationResponse

type CreateExportPersonalDataOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type CreateExportPersonalDataRequest

type CreateExportPersonalDataRequest struct {
	StorageLocation nullable.Type[string] `json:"storageLocation,omitempty"`
}

type CreateGetsUserOwnedObjectOperationOptions

type CreateGetsUserOwnedObjectOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateGetsUserOwnedObjectOperationOptions

func DefaultCreateGetsUserOwnedObjectOperationOptions() CreateGetsUserOwnedObjectOperationOptions

func (CreateGetsUserOwnedObjectOperationOptions) ToHeaders

func (CreateGetsUserOwnedObjectOperationOptions) ToOData

func (CreateGetsUserOwnedObjectOperationOptions) ToQuery

type CreateGetsUserOwnedObjectOperationResponse

type CreateGetsUserOwnedObjectOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.DirectoryObject
}

type CreateGetsUserOwnedObjectRequest

type CreateGetsUserOwnedObjectRequest struct {
	Type   nullable.Type[string] `json:"type,omitempty"`
	UserId nullable.Type[string] `json:"userId,omitempty"`
}

type CreateInvalidateAllRefreshTokenOperationOptions

type CreateInvalidateAllRefreshTokenOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateInvalidateAllRefreshTokenOperationOptions

func DefaultCreateInvalidateAllRefreshTokenOperationOptions() CreateInvalidateAllRefreshTokenOperationOptions

func (CreateInvalidateAllRefreshTokenOperationOptions) ToHeaders

func (CreateInvalidateAllRefreshTokenOperationOptions) ToOData

func (CreateInvalidateAllRefreshTokenOperationOptions) ToQuery

type CreateInvalidateAllRefreshTokenOperationResponse

type CreateInvalidateAllRefreshTokenOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CreateInvalidateAllRefreshTokenResult
}

type CreateInvalidateAllRefreshTokenResult

type CreateInvalidateAllRefreshTokenResult struct {
	Value nullable.Type[bool] `json:"value,omitempty"`
}

type CreateUnblockManagedAppOperationOptions

type CreateUnblockManagedAppOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateUnblockManagedAppOperationOptions

func DefaultCreateUnblockManagedAppOperationOptions() CreateUnblockManagedAppOperationOptions

func (CreateUnblockManagedAppOperationOptions) ToHeaders

func (CreateUnblockManagedAppOperationOptions) ToOData

func (CreateUnblockManagedAppOperationOptions) ToQuery

type CreateUnblockManagedAppOperationResponse

type CreateUnblockManagedAppOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type CreateUserOperationOptions

type CreateUserOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateUserOperationOptions

func DefaultCreateUserOperationOptions() CreateUserOperationOptions

func (CreateUserOperationOptions) ToHeaders

func (o CreateUserOperationOptions) ToHeaders() *client.Headers

func (CreateUserOperationOptions) ToOData

func (o CreateUserOperationOptions) ToOData() *odata.Query

func (CreateUserOperationOptions) ToQuery

type CreateUserOperationResponse

type CreateUserOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.User
}

type CreateValidatesPasswordOperationOptions

type CreateValidatesPasswordOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateValidatesPasswordOperationOptions

func DefaultCreateValidatesPasswordOperationOptions() CreateValidatesPasswordOperationOptions

func (CreateValidatesPasswordOperationOptions) ToHeaders

func (CreateValidatesPasswordOperationOptions) ToOData

func (CreateValidatesPasswordOperationOptions) ToQuery

type CreateValidatesPasswordOperationResponse

type CreateValidatesPasswordOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.PasswordValidationInformation
}

type CreateValidatesPasswordRequest

type CreateValidatesPasswordRequest struct {
	Password *string `json:"password,omitempty"`
}

type CreateValidatesPropertyOperationOptions

type CreateValidatesPropertyOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateValidatesPropertyOperationOptions

func DefaultCreateValidatesPropertyOperationOptions() CreateValidatesPropertyOperationOptions

func (CreateValidatesPropertyOperationOptions) ToHeaders

func (CreateValidatesPropertyOperationOptions) ToOData

func (CreateValidatesPropertyOperationOptions) ToQuery

type CreateValidatesPropertyOperationResponse

type CreateValidatesPropertyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type CreateValidatesPropertyRequest

type CreateValidatesPropertyRequest struct {
	DisplayName      nullable.Type[string] `json:"displayName,omitempty"`
	EntityType       nullable.Type[string] `json:"entityType,omitempty"`
	MailNickname     nullable.Type[string] `json:"mailNickname,omitempty"`
	OnBehalfOfUserId nullable.Type[string] `json:"onBehalfOfUserId,omitempty"`
}

type DeletePasswordSingleSignOnCredentialsOperationOptions

type DeletePasswordSingleSignOnCredentialsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultDeletePasswordSingleSignOnCredentialsOperationOptions

func DefaultDeletePasswordSingleSignOnCredentialsOperationOptions() DeletePasswordSingleSignOnCredentialsOperationOptions

func (DeletePasswordSingleSignOnCredentialsOperationOptions) ToHeaders

func (DeletePasswordSingleSignOnCredentialsOperationOptions) ToOData

func (DeletePasswordSingleSignOnCredentialsOperationOptions) ToQuery

type DeletePasswordSingleSignOnCredentialsOperationResponse

type DeletePasswordSingleSignOnCredentialsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeletePasswordSingleSignOnCredentialsRequest

type DeletePasswordSingleSignOnCredentialsRequest struct {
	Id *string `json:"id,omitempty"`
}

type DeleteUserOperationOptions

type DeleteUserOperationOptions struct {
	IfMatch   *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultDeleteUserOperationOptions

func DefaultDeleteUserOperationOptions() DeleteUserOperationOptions

func (DeleteUserOperationOptions) ToHeaders

func (o DeleteUserOperationOptions) ToHeaders() *client.Headers

func (DeleteUserOperationOptions) ToOData

func (o DeleteUserOperationOptions) ToOData() *odata.Query

func (DeleteUserOperationOptions) ToQuery

type DeleteUserOperationResponse

type DeleteUserOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DirectoryObjectOperationPredicate

type DirectoryObjectOperationPredicate struct {
}

func (DirectoryObjectOperationPredicate) Matches

type FindMeetingTimesOperationOptions

type FindMeetingTimesOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultFindMeetingTimesOperationOptions

func DefaultFindMeetingTimesOperationOptions() FindMeetingTimesOperationOptions

func (FindMeetingTimesOperationOptions) ToHeaders

func (FindMeetingTimesOperationOptions) ToOData

func (FindMeetingTimesOperationOptions) ToQuery

type FindMeetingTimesOperationResponse

type FindMeetingTimesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.MeetingTimeSuggestionsResult
}

type FindMeetingTimesRequest

type FindMeetingTimesRequest struct {
	Attendees               *[]beta.AttendeeBase     `json:"attendees,omitempty"`
	IsOrganizerOptional     nullable.Type[bool]      `json:"isOrganizerOptional,omitempty"`
	LocationConstraint      *beta.LocationConstraint `json:"locationConstraint,omitempty"`
	MaxCandidates           nullable.Type[int64]     `json:"maxCandidates,omitempty"`
	MeetingDuration         nullable.Type[string]    `json:"meetingDuration,omitempty"`
	ReturnSuggestionReasons nullable.Type[bool]      `json:"returnSuggestionReasons,omitempty"`
	TimeConstraint          *beta.TimeConstraint     `json:"timeConstraint,omitempty"`
}

type GetMailTipsCompleteResult

type GetMailTipsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.MailTips
}

type GetMailTipsCustomPager

type GetMailTipsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *GetMailTipsCustomPager) NextPageLink() *odata.Link

type GetMailTipsOperationOptions

type GetMailTipsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultGetMailTipsOperationOptions

func DefaultGetMailTipsOperationOptions() GetMailTipsOperationOptions

func (GetMailTipsOperationOptions) ToHeaders

func (GetMailTipsOperationOptions) ToOData

func (GetMailTipsOperationOptions) ToQuery

type GetMailTipsOperationResponse

type GetMailTipsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.MailTips
}

type GetMailTipsRequest

type GetMailTipsRequest struct {
	EmailAddresses  *[]string          `json:"EmailAddresses,omitempty"`
	MailTipsOptions *beta.MailTipsType `json:"MailTipsOptions,omitempty"`
}

type GetMemberGroupsCompleteResult

type GetMemberGroupsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []string
}

type GetMemberGroupsCustomPager

type GetMemberGroupsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *GetMemberGroupsCustomPager) NextPageLink() *odata.Link

type GetMemberGroupsOperationOptions

type GetMemberGroupsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultGetMemberGroupsOperationOptions

func DefaultGetMemberGroupsOperationOptions() GetMemberGroupsOperationOptions

func (GetMemberGroupsOperationOptions) ToHeaders

func (GetMemberGroupsOperationOptions) ToOData

func (GetMemberGroupsOperationOptions) ToQuery

type GetMemberGroupsOperationResponse

type GetMemberGroupsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]string
}

type GetMemberGroupsRequest

type GetMemberGroupsRequest struct {
	SecurityEnabledOnly nullable.Type[bool] `json:"securityEnabledOnly,omitempty"`
}

type GetMemberObjectsCompleteResult

type GetMemberObjectsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []string
}

type GetMemberObjectsCustomPager

type GetMemberObjectsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *GetMemberObjectsCustomPager) NextPageLink() *odata.Link

type GetMemberObjectsOperationOptions

type GetMemberObjectsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultGetMemberObjectsOperationOptions

func DefaultGetMemberObjectsOperationOptions() GetMemberObjectsOperationOptions

func (GetMemberObjectsOperationOptions) ToHeaders

func (GetMemberObjectsOperationOptions) ToOData

func (GetMemberObjectsOperationOptions) ToQuery

type GetMemberObjectsOperationResponse

type GetMemberObjectsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]string
}

type GetMemberObjectsRequest

type GetMemberObjectsRequest struct {
	SecurityEnabledOnly nullable.Type[bool] `json:"securityEnabledOnly,omitempty"`
}

type GetPasswordSingleSignOnCredentialsCompleteResult

type GetPasswordSingleSignOnCredentialsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.PasswordSingleSignOnCredentialSet
}

type GetPasswordSingleSignOnCredentialsCustomPager

type GetPasswordSingleSignOnCredentialsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type GetPasswordSingleSignOnCredentialsOperationOptions

type GetPasswordSingleSignOnCredentialsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultGetPasswordSingleSignOnCredentialsOperationOptions

func DefaultGetPasswordSingleSignOnCredentialsOperationOptions() GetPasswordSingleSignOnCredentialsOperationOptions

func (GetPasswordSingleSignOnCredentialsOperationOptions) ToHeaders

func (GetPasswordSingleSignOnCredentialsOperationOptions) ToOData

func (GetPasswordSingleSignOnCredentialsOperationOptions) ToQuery

type GetPasswordSingleSignOnCredentialsOperationResponse

type GetPasswordSingleSignOnCredentialsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.PasswordSingleSignOnCredentialSet
}

type GetUserOperationOptions

type GetUserOperationOptions struct {
	Expand    *odata.Expand
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Select    *[]string
}

func DefaultGetUserOperationOptions

func DefaultGetUserOperationOptions() GetUserOperationOptions

func (GetUserOperationOptions) ToHeaders

func (o GetUserOperationOptions) ToHeaders() *client.Headers

func (GetUserOperationOptions) ToOData

func (o GetUserOperationOptions) ToOData() *odata.Query

func (GetUserOperationOptions) ToQuery

type GetUserOperationResponse

type GetUserOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.User
}

type GetsCountOperationOptions

type GetsCountOperationOptions struct {
	ConsistencyLevel *odata.ConsistencyLevel
	Filter           *string
	Metadata         *odata.Metadata
	RetryFunc        client.RequestRetryFunc
	Search           *string
}

func DefaultGetsCountOperationOptions

func DefaultGetsCountOperationOptions() GetsCountOperationOptions

func (GetsCountOperationOptions) ToHeaders

func (o GetsCountOperationOptions) ToHeaders() *client.Headers

func (GetsCountOperationOptions) ToOData

func (o GetsCountOperationOptions) ToOData() *odata.Query

func (GetsCountOperationOptions) ToQuery

type GetsCountOperationResponse

type GetsCountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]byte
}

type ListGetsByIdsCompleteResult

type ListGetsByIdsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DirectoryObject
}

type ListGetsByIdsCustomPager

type ListGetsByIdsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListGetsByIdsCustomPager) NextPageLink() *odata.Link

type ListGetsByIdsOperationOptions

type ListGetsByIdsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultListGetsByIdsOperationOptions

func DefaultListGetsByIdsOperationOptions() ListGetsByIdsOperationOptions

func (ListGetsByIdsOperationOptions) ToHeaders

func (ListGetsByIdsOperationOptions) ToOData

func (ListGetsByIdsOperationOptions) ToQuery

type ListGetsByIdsOperationResponse

type ListGetsByIdsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DirectoryObject
}

type ListGetsByIdsRequest

type ListGetsByIdsRequest struct {
	Ids   *[]string `json:"ids,omitempty"`
	Types *[]string `json:"types,omitempty"`
}

type ListUsersCompleteResult

type ListUsersCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.User
}

type ListUsersCustomPager

type ListUsersCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListUsersCustomPager) NextPageLink() *odata.Link

type ListUsersOperationOptions

type ListUsersOperationOptions struct {
	ConsistencyLevel *odata.ConsistencyLevel
	Count            *bool
	Expand           *odata.Expand
	Filter           *string
	Metadata         *odata.Metadata
	OrderBy          *odata.OrderBy
	RetryFunc        client.RequestRetryFunc
	Search           *string
	Select           *[]string
	Skip             *int64
	Top              *int64
}

func DefaultListUsersOperationOptions

func DefaultListUsersOperationOptions() ListUsersOperationOptions

func (ListUsersOperationOptions) ToHeaders

func (o ListUsersOperationOptions) ToHeaders() *client.Headers

func (ListUsersOperationOptions) ToOData

func (o ListUsersOperationOptions) ToOData() *odata.Query

func (ListUsersOperationOptions) ToQuery

type ListUsersOperationResponse

type ListUsersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.User
}

type MailTipsOperationPredicate

type MailTipsOperationPredicate struct {
}

func (MailTipsOperationPredicate) Matches

func (p MailTipsOperationPredicate) Matches(input beta.MailTips) bool

type PasswordSingleSignOnCredentialSetOperationPredicate

type PasswordSingleSignOnCredentialSetOperationPredicate struct {
}

func (PasswordSingleSignOnCredentialSetOperationPredicate) Matches

type RemoveAllDevicesFromManagementOperationOptions

type RemoveAllDevicesFromManagementOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultRemoveAllDevicesFromManagementOperationOptions

func DefaultRemoveAllDevicesFromManagementOperationOptions() RemoveAllDevicesFromManagementOperationOptions

func (RemoveAllDevicesFromManagementOperationOptions) ToHeaders

func (RemoveAllDevicesFromManagementOperationOptions) ToOData

func (RemoveAllDevicesFromManagementOperationOptions) ToQuery

type RemoveAllDevicesFromManagementOperationResponse

type RemoveAllDevicesFromManagementOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ReprocessLicenseAssignmentOperationOptions

type ReprocessLicenseAssignmentOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultReprocessLicenseAssignmentOperationOptions

func DefaultReprocessLicenseAssignmentOperationOptions() ReprocessLicenseAssignmentOperationOptions

func (ReprocessLicenseAssignmentOperationOptions) ToHeaders

func (ReprocessLicenseAssignmentOperationOptions) ToOData

func (ReprocessLicenseAssignmentOperationOptions) ToQuery

type ReprocessLicenseAssignmentOperationResponse

type ReprocessLicenseAssignmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.User
}

type RestoreOperationOptions

type RestoreOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultRestoreOperationOptions

func DefaultRestoreOperationOptions() RestoreOperationOptions

func (RestoreOperationOptions) ToHeaders

func (o RestoreOperationOptions) ToHeaders() *client.Headers

func (RestoreOperationOptions) ToOData

func (o RestoreOperationOptions) ToOData() *odata.Query

func (RestoreOperationOptions) ToQuery

type RestoreOperationResponse

type RestoreOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.DirectoryObject
}

type RestoreRequest

type RestoreRequest struct {
	AutoReconcileProxyConflict nullable.Type[bool] `json:"autoReconcileProxyConflict,omitempty"`
}

type RetryServiceProvisioningOperationOptions

type RetryServiceProvisioningOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultRetryServiceProvisioningOperationOptions

func DefaultRetryServiceProvisioningOperationOptions() RetryServiceProvisioningOperationOptions

func (RetryServiceProvisioningOperationOptions) ToHeaders

func (RetryServiceProvisioningOperationOptions) ToOData

func (RetryServiceProvisioningOperationOptions) ToQuery

type RetryServiceProvisioningOperationResponse

type RetryServiceProvisioningOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type RevokeSignInSessionsOperationOptions

type RevokeSignInSessionsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultRevokeSignInSessionsOperationOptions

func DefaultRevokeSignInSessionsOperationOptions() RevokeSignInSessionsOperationOptions

func (RevokeSignInSessionsOperationOptions) ToHeaders

func (RevokeSignInSessionsOperationOptions) ToOData

func (RevokeSignInSessionsOperationOptions) ToQuery

type RevokeSignInSessionsOperationResponse

type RevokeSignInSessionsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RevokeSignInSessionsResult
}

type RevokeSignInSessionsResult

type RevokeSignInSessionsResult struct {
	Value nullable.Type[bool] `json:"value,omitempty"`
}

type SendMailOperationOptions

type SendMailOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultSendMailOperationOptions

func DefaultSendMailOperationOptions() SendMailOperationOptions

func (SendMailOperationOptions) ToHeaders

func (o SendMailOperationOptions) ToHeaders() *client.Headers

func (SendMailOperationOptions) ToOData

func (o SendMailOperationOptions) ToOData() *odata.Query

func (SendMailOperationOptions) ToQuery

type SendMailOperationResponse

type SendMailOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type SendMailRequest

type SendMailRequest struct {
	Message         *beta.Message       `json:"Message,omitempty"`
	SaveToSentItems nullable.Type[bool] `json:"SaveToSentItems,omitempty"`
}

type TranslateExchangeIdsCompleteResult

type TranslateExchangeIdsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.ConvertIdResult
}

type TranslateExchangeIdsCustomPager

type TranslateExchangeIdsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *TranslateExchangeIdsCustomPager) NextPageLink() *odata.Link

type TranslateExchangeIdsOperationOptions

type TranslateExchangeIdsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultTranslateExchangeIdsOperationOptions

func DefaultTranslateExchangeIdsOperationOptions() TranslateExchangeIdsOperationOptions

func (TranslateExchangeIdsOperationOptions) ToHeaders

func (TranslateExchangeIdsOperationOptions) ToOData

func (TranslateExchangeIdsOperationOptions) ToQuery

type TranslateExchangeIdsOperationResponse

type TranslateExchangeIdsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.ConvertIdResult
}

type TranslateExchangeIdsRequest

type TranslateExchangeIdsRequest struct {
	InputIds     *[]string              `json:"InputIds,omitempty"`
	SourceIdType *beta.ExchangeIdFormat `json:"SourceIdType,omitempty"`
	TargetIdType *beta.ExchangeIdFormat `json:"TargetIdType,omitempty"`
}

type UpdateUserOperationOptions

type UpdateUserOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultUpdateUserOperationOptions

func DefaultUpdateUserOperationOptions() UpdateUserOperationOptions

func (UpdateUserOperationOptions) ToHeaders

func (o UpdateUserOperationOptions) ToHeaders() *client.Headers

func (UpdateUserOperationOptions) ToOData

func (o UpdateUserOperationOptions) ToOData() *odata.Query

func (UpdateUserOperationOptions) ToQuery

type UpdateUserOperationResponse

type UpdateUserOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type UserClient

type UserClient struct {
	Client *msgraph.Client
}

func NewUserClientWithBaseURI

func NewUserClientWithBaseURI(sdkApi sdkEnv.Api) (*UserClient, error)

func (UserClient) AssignLicense

AssignLicense - Invoke action assignLicense. Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. To get the subscriptions available in the directory, perform a GET subscribedSkus request.

func (UserClient) ChangePassword

ChangePassword - Invoke action changePassword. Enable the user to update their password. Any user can update their password without belonging to any administrator role.

func (UserClient) CheckMemberGroups

CheckMemberGroups - Invoke action checkMemberGroups. Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.

func (UserClient) CheckMemberGroupsComplete

CheckMemberGroupsComplete retrieves all the results into a single object

func (UserClient) CheckMemberObjects

CheckMemberObjects - Invoke action checkMemberObjects

func (UserClient) CheckMemberObjectsComplete

CheckMemberObjectsComplete retrieves all the results into a single object

func (UserClient) CreateConvertExternalToInternalMemberUser

CreateConvertExternalToInternalMemberUser - Invoke action convertExternalToInternalMemberUser. Convert an externally authenticated user into an internal user. The user is able to sign into the host tenant as an internal user and access resources as a member. For more information about this conversion, see Convert external users to internal users.

func (UserClient) CreateExportPersonalData

CreateExportPersonalData - Invoke action exportPersonalData. Submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more information about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA.

func (UserClient) CreateGetsUserOwnedObject

CreateGetsUserOwnedObject - Invoke action getUserOwnedObjects. Retrieve a list of recently deleted application and group objects owned by the specified user. This API returns up to 1,000 deleted objects owned by the user, sorted by ID, and doesn't support pagination.

func (UserClient) CreateInvalidateAllRefreshToken

CreateInvalidateAllRefreshToken - Invoke action invalidateAllRefreshTokens. Invalidates all of the user's refresh tokens issued to applications (as well as session cookies in a user's browser), by resetting the refreshTokensValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation would prevent access to any of the organization's data accessed through applications on the device without the user first being required to sign in again. In fact, this operation would force the user to sign in again for all applications that they have previously consented to, independent of device. For developers, if the application attempts to redeem a delegated access token for this user by using an invalidated refresh token, the application will get an error. If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint, which will force the user to sign in.

func (UserClient) CreateUnblockManagedApp

CreateUnblockManagedApp - Invoke action unblockManagedApps. Unblocks the managed app user from app check-in.

func (UserClient) CreateUser

func (c UserClient) CreateUser(ctx context.Context, input beta.User, options CreateUserOperationOptions) (result CreateUserOperationResponse, err error)

CreateUser - Create user. Create a new user. The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. This operation returns by default only a subset of the 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 and specify the properties in a $select OData query option.

func (UserClient) CreateValidatesPassword

CreateValidatesPassword - Invoke action validatePassword. Check a user's password against the organization's password validation policy and report whether the password is valid. Use this action to provide real-time feedback on password strength while the user types their password.

func (UserClient) CreateValidatesProperty

CreateValidatesProperty - Invoke action validateProperties. Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. For validating properties of an existing group, use the validateProperties function for groups. The following validations are performed for the display name and mail nickname properties: 1. Validate the prefix and suffix naming policy 2. Validate the custom banned words policy 3. Validate the mail nickname is unique This API returns with the first failure encountered. If one or more properties fail multiple validations, only the property with the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy.

func (UserClient) DeletePasswordSingleSignOnCredentials

DeletePasswordSingleSignOnCredentials - Invoke action deletePasswordSingleSignOnCredentials. Delete the password-based single sign-on credentials for a given user to a given service principal.

func (UserClient) DeleteUser

DeleteUser - Delete a user. 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.

func (UserClient) FindMeetingTimes

FindMeetingTimes - Invoke action findMeetingTimes. Suggest meeting times and locations based on organizer and attendee availability, and time or location constraints specified as parameters. If findMeetingTimes cannot return any meeting suggestions, the response would indicate a reason in the emptySuggestionsReason property. Based on this value, you can better adjust the parameters and call findMeetingTimes again. The algorithm used to suggest meeting times and locations undergoes fine-tuning from time to time. In scenarios like test environments where the input parameters and calendar data remain static, expect that the suggested results may differ over time.

func (UserClient) GetMailTips

GetMailTips - Invoke action getMailTips. Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips to be returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection.

func (UserClient) GetMailTipsComplete

GetMailTipsComplete retrieves all the results into a single object

func (UserClient) GetMailTipsCompleteMatchingPredicate

func (c UserClient) GetMailTipsCompleteMatchingPredicate(ctx context.Context, id beta.UserId, input GetMailTipsRequest, options GetMailTipsOperationOptions, predicate MailTipsOperationPredicate) (result GetMailTipsCompleteResult, err error)

GetMailTipsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (UserClient) GetMemberGroups

GetMemberGroups - Invoke action getMemberGroups. Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.

func (UserClient) GetMemberGroupsComplete

func (c UserClient) GetMemberGroupsComplete(ctx context.Context, id beta.UserId, input GetMemberGroupsRequest, options GetMemberGroupsOperationOptions) (result GetMemberGroupsCompleteResult, err error)

GetMemberGroupsComplete retrieves all the results into a single object

func (UserClient) GetMemberObjects

GetMemberObjects - Invoke action getMemberObjects

func (UserClient) GetMemberObjectsComplete

func (c UserClient) GetMemberObjectsComplete(ctx context.Context, id beta.UserId, input GetMemberObjectsRequest, options GetMemberObjectsOperationOptions) (result GetMemberObjectsCompleteResult, err error)

GetMemberObjectsComplete retrieves all the results into a single object

func (UserClient) GetPasswordSingleSignOnCredentials

GetPasswordSingleSignOnCredentials - Invoke action getPasswordSingleSignOnCredentials. Get the list of password-based single sign-on credentials for a given user. This API returns the encrypted passwords as null or empty strings.

func (UserClient) GetPasswordSingleSignOnCredentialsComplete

GetPasswordSingleSignOnCredentialsComplete retrieves all the results into a single object

func (UserClient) GetPasswordSingleSignOnCredentialsCompleteMatchingPredicate

GetPasswordSingleSignOnCredentialsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (UserClient) GetUser

func (c UserClient) GetUser(ctx context.Context, id beta.UserId, options GetUserOperationOptions) (result GetUserOperationResponse, err error)

GetUser - Get user. 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.

func (UserClient) GetsCount

func (c UserClient) GetsCount(ctx context.Context, options GetsCountOperationOptions) (result GetsCountOperationResponse, err error)

GetsCount - Get the number of the resource

func (UserClient) ListGetsByIds

ListGetsByIds - Invoke action getByIds. Return the directory objects specified in a list of IDs. Some common uses for this function are to

func (UserClient) ListGetsByIdsComplete

ListGetsByIdsComplete retrieves all the results into a single object

func (UserClient) ListGetsByIdsCompleteMatchingPredicate

func (c UserClient) ListGetsByIdsCompleteMatchingPredicate(ctx context.Context, input ListGetsByIdsRequest, options ListGetsByIdsOperationOptions, predicate DirectoryObjectOperationPredicate) (result ListGetsByIdsCompleteResult, err error)

ListGetsByIdsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (UserClient) ListUsers

func (c UserClient) ListUsers(ctx context.Context, options ListUsersOperationOptions) (result ListUsersOperationResponse, err error)

ListUsers - List users. Retrieve a list of user objects. 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.

func (UserClient) ListUsersComplete

ListUsersComplete retrieves all the results into a single object

func (UserClient) ListUsersCompleteMatchingPredicate

func (c UserClient) ListUsersCompleteMatchingPredicate(ctx context.Context, options ListUsersOperationOptions, predicate UserOperationPredicate) (result ListUsersCompleteResult, err error)

ListUsersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (UserClient) RemoveAllDevicesFromManagement

RemoveAllDevicesFromManagement - Invoke action removeAllDevicesFromManagement. Retire all devices from management for this user

func (UserClient) ReprocessLicenseAssignment

ReprocessLicenseAssignment - Invoke action reprocessLicenseAssignment. Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. Also see Identify and resolve license assignment problems for a group in Microsoft Entra ID for more details.

func (UserClient) Restore

Restore - Invoke action restore. Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.

func (UserClient) RetryServiceProvisioning

RetryServiceProvisioning - Invoke action retryServiceProvisioning. Retry the user service provisioning.

func (UserClient) RevokeSignInSessions

RevokeSignInSessions - Invoke action revokeSignInSessions. Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. If the application attempts to redeem a delegated access token for this user by using an invalidated refresh token, the application will get an error. If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint, which will force the user to sign in.

func (UserClient) SendMail

SendMail - Invoke action sendMail. Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include an attachment and use a mention to call out another user in the new message. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here.

func (UserClient) TranslateExchangeIds

TranslateExchangeIds - Invoke action translateExchangeIds. Translate identifiers of Outlook-related resources between formats.

func (UserClient) TranslateExchangeIdsComplete

TranslateExchangeIdsComplete retrieves all the results into a single object

func (UserClient) TranslateExchangeIdsCompleteMatchingPredicate

func (c UserClient) TranslateExchangeIdsCompleteMatchingPredicate(ctx context.Context, id beta.UserId, input TranslateExchangeIdsRequest, options TranslateExchangeIdsOperationOptions, predicate ConvertIdResultOperationPredicate) (result TranslateExchangeIdsCompleteResult, err error)

TranslateExchangeIdsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (UserClient) UpdateUser

func (c UserClient) UpdateUser(ctx context.Context, id beta.UserId, input beta.User, options UpdateUserOperationOptions) (result UpdateUserOperationResponse, err error)

UpdateUser - Update user. Update the properties of a user object.

func (UserClient) WipeAndBlockManagedApps

WipeAndBlockManagedApps - Invoke action wipeAndBlockManagedApps. Blocks the managed app user from app check-in.

func (UserClient) WipeManagedAppRegistrationByDeviceTag

WipeManagedAppRegistrationByDeviceTag - Invoke action wipeManagedAppRegistrationByDeviceTag. Issues a wipe operation on an app registration with specified device tag.

func (UserClient) WipeManagedAppRegistrationsByAzureAdDeviceId

WipeManagedAppRegistrationsByAzureAdDeviceId - Invoke action wipeManagedAppRegistrationsByAzureAdDeviceId. Issues a wipe operation on an app registration with specified aad device Id.

func (UserClient) WipeManagedAppRegistrationsByDeviceTag

WipeManagedAppRegistrationsByDeviceTag - Invoke action wipeManagedAppRegistrationsByDeviceTag. Issues a wipe operation on an app registration with specified device tag.

type UserOperationPredicate

type UserOperationPredicate struct {
}

func (UserOperationPredicate) Matches

func (p UserOperationPredicate) Matches(input beta.User) bool

type WipeAndBlockManagedAppsOperationOptions

type WipeAndBlockManagedAppsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultWipeAndBlockManagedAppsOperationOptions

func DefaultWipeAndBlockManagedAppsOperationOptions() WipeAndBlockManagedAppsOperationOptions

func (WipeAndBlockManagedAppsOperationOptions) ToHeaders

func (WipeAndBlockManagedAppsOperationOptions) ToOData

func (WipeAndBlockManagedAppsOperationOptions) ToQuery

type WipeAndBlockManagedAppsOperationResponse

type WipeAndBlockManagedAppsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type WipeManagedAppRegistrationByDeviceTagOperationOptions

type WipeManagedAppRegistrationByDeviceTagOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultWipeManagedAppRegistrationByDeviceTagOperationOptions

func DefaultWipeManagedAppRegistrationByDeviceTagOperationOptions() WipeManagedAppRegistrationByDeviceTagOperationOptions

func (WipeManagedAppRegistrationByDeviceTagOperationOptions) ToHeaders

func (WipeManagedAppRegistrationByDeviceTagOperationOptions) ToOData

func (WipeManagedAppRegistrationByDeviceTagOperationOptions) ToQuery

type WipeManagedAppRegistrationByDeviceTagOperationResponse

type WipeManagedAppRegistrationByDeviceTagOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type WipeManagedAppRegistrationByDeviceTagRequest

type WipeManagedAppRegistrationByDeviceTagRequest struct {
	DeviceTag nullable.Type[string] `json:"deviceTag,omitempty"`
}

type WipeManagedAppRegistrationsByAzureAdDeviceIdOperationOptions

type WipeManagedAppRegistrationsByAzureAdDeviceIdOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (WipeManagedAppRegistrationsByAzureAdDeviceIdOperationOptions) ToHeaders

func (WipeManagedAppRegistrationsByAzureAdDeviceIdOperationOptions) ToOData

func (WipeManagedAppRegistrationsByAzureAdDeviceIdOperationOptions) ToQuery

type WipeManagedAppRegistrationsByAzureAdDeviceIdOperationResponse

type WipeManagedAppRegistrationsByAzureAdDeviceIdOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type WipeManagedAppRegistrationsByAzureAdDeviceIdRequest

type WipeManagedAppRegistrationsByAzureAdDeviceIdRequest struct {
	AzureAdDeviceId nullable.Type[string] `json:"azureAdDeviceId,omitempty"`
}

type WipeManagedAppRegistrationsByDeviceTagOperationOptions

type WipeManagedAppRegistrationsByDeviceTagOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultWipeManagedAppRegistrationsByDeviceTagOperationOptions

func DefaultWipeManagedAppRegistrationsByDeviceTagOperationOptions() WipeManagedAppRegistrationsByDeviceTagOperationOptions

func (WipeManagedAppRegistrationsByDeviceTagOperationOptions) ToHeaders

func (WipeManagedAppRegistrationsByDeviceTagOperationOptions) ToOData

func (WipeManagedAppRegistrationsByDeviceTagOperationOptions) ToQuery

type WipeManagedAppRegistrationsByDeviceTagOperationResponse

type WipeManagedAppRegistrationsByDeviceTagOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type WipeManagedAppRegistrationsByDeviceTagRequest

type WipeManagedAppRegistrationsByDeviceTagRequest struct {
	DeviceTag nullable.Type[string] `json:"deviceTag,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

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