build 2016 - p508 - customizing your device experience with assigned access

23

Upload: windows-developer

Post on 22-Jan-2018

292 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access
Page 2: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access
Page 3: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access

Windows 10Pro

Enterprise

Education

Restrict the device experience for a specific user account to a

single universal windows application.

Example:

• Kiosk type single-function devices

Windows 10Mobile

Mobile Enterprise

Restrict the device experience for one or more functional roles to

a curated set of applications and settings.

Examples:

• Kiosk type single-function devices

• Corporate owned lockdown devices for single user

• Corporate owned shared devices for multiple users with different roles

Page 4: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access
Page 5: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access

Assigned access lets you restrict a specific user account to using only one universal windows app.

Page 6: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access

Desktop

Kiosk app

(under lock view)

Lock screen app

Kiosk app

(above lock view)

z order

low

high

Page 7: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access

• Secure

• Use

• Provide

• Manage

• Add

• Test

• Do not

• Do not MSDN link

Page 8: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access
Page 9: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access

Intended for corporate owned task oriented devices

Role is a curated lockdown experience

Multiple roles can be defined by IT admin

Custom login and role switching experience

Page 10: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access
Page 11: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access
Page 12: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access
Page 13: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access
Page 14: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access

• Start simple

• Add comments

• Validate

• Allow device reset

• Test

Page 15: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access

Class Method Description

DeviceLockdownProfile ApplyLockdownProfileAsync Activates the restrictions

associated with the

specified user role ID.

GetCurrentLockdownProfile Gets the user role ID

that is currently in use

by the device.

GetLockdownProfileInformation Gets the information

object about a specific

user role.

GetSupportedLockdownProfiles Gets the list of

supported user role IDs.

Class Property Description

DeviceLockdownProfileInformation Name Gets the user descriptor string of

current profile

Windows.Embedded.DeviceLockdown APIs

Page 16: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access

protected override void OnNavigatedTo(NavigationEventArgs e)

{

try

{

// If the current role is Guid.Empty, then the user is not signed in.

Guid currentRole = DeviceLockdownProfile.GetCurrentLockdownProfile();

if (currentRole == Guid.Empty)

{

SignInStatus.Text = "You are not signed in.";

canSignOut = false;

}

else

{

DeviceLockdownProfileInformation currentProfile = DeviceLockdownProfile.GetLockdownProfileInformation(currentRole);

SignInStatus.Text = "You are signed in as " + currentProfile.Name;

canSignOut = true;

}

SignOutButton.IsEnabled = canSignOut;

LoadApplicationUsers();

}

catch (System.IO.FileNotFoundException)

{

rootPage.NotifyUser("Assigned Access is not configured on this device.", NotifyType.ErrorMessage);

}

}

Page 17: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access

private void LoadApplicationUsers()

{

// Add the available roles.

foreach (Guid roleId in DeviceLockdownProfile.GetSupportedLockdownProfiles())

{

DeviceLockdownProfileInformation profile = DeviceLockdownProfile.GetLockdownProfileInformation(roleId);

UserRoles.Items.Add(new ListBoxItem() { Content = profile.Name, Tag = roleId });

}

// If there are roles available, then pre-select the first one and enable the Sign In button.

if (UserRoles.Items.Count > 0)

{

UserRoles.SelectedIndex = 0;

SignInButton.IsEnabled = true;

}

}

Page 18: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access

private async Task SignInAsync()

{

// Extract the name and role of the item the user selected.

ListBoxItem selectedItem = (ListBoxItem)UserRoles.SelectedItem;

string selectedName = (string)selectedItem.Content;

Guid selectedRole = (Guid)selectedItem.Tag;

// Note that successfully applying the profile will result in the termination of all running apps, including this sample.

await DeviceLockdownProfile.ApplyLockdownProfileAsync(selectedRole);

}

Page 19: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access

private async Task SignOutAsync()

{

// Apply the Default role, which is represented by Guid.Empty.

// The Default role is the one that is used when nobody is signed in.

// Note that successfully applying the profile will result in the termination of all running apps, including this sample.

await DeviceLockdownProfile.ApplyLockdownProfileAsync(Guid.Empty);

}

Page 20: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access

<?xml version="1.0" encoding="utf-8"?>

<Package

xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"

xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"

xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"

xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

IgnorableNamespaces="uap mp rescap">

.

.

.

<Dependencies>

<TargetDeviceFamily Name="Windows.Mobile" MinVersion="10.0.10240.0" MaxVersionTested="10.0.10586.0" />

</Dependencies>

.

.

.

<Capabilities>

<rescap:Capability Name="enterpriseDeviceLockdown" />

</Capabilities>

</Package>

Page 21: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access
Page 23: Build 2016 - P508 - Customizing Your Device Experience with Assigned Access