1e41f4b71Sopenharmony_ci# Requesting One-Time User Authorization 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciTo comply with the minimum authorization principle and protect user data against unauthorized access from applications and abuse, the **Allow this time only** option is added to the user authorization dialog box for certain sensitive permissions. 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ciNo additional configuration is required in application development. When **requestPermissionsFromUser()** is called to [request user authorization](request-user-authorization.md), the system displays a dialog box based on the [requested permissions](#supported-permissions). 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciThe following figure shows an example of the user authorization dialog box. 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciThe following figure shows the options in **Settings**. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciPath: **Settings** > **Privacy** > **Permission manager** > **Apps** > *Target application* > **Location** 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci## Supported Permissions 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ciCurrently, the **Allow this time only** option is available only for the following permissions. When an application requests any of these permissions, the user authorization dialog box displayed contains the **Allow this time only** option, and permission settings dialog box contains the **Ask each time** option. 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci- <!--RP1-->[ohos.permission.READ_PASTEBOARD](permissions-for-system-apps.md#ohospermissionread_pasteboard)<!--RP1End--> 22e41f4b71Sopenharmony_ci- [ohos.permission.APPROXIMATELY_LOCATION](./permissions-for-all.md#ohospermissionapproximately_location) 23e41f4b71Sopenharmony_ci- [ohos.permission.LOCATION](./permissions-for-all.md#ohospermissionlocation) 24e41f4b71Sopenharmony_ci- [ohos.permission.LOCATION_IN_BACKGROUND](./permissions-for-all.md#ohospermissionlocation_in_background) 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci## Constraints 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci- When the user selects **Allow this time only**, the permission is authorized to the application temporarily. 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ci - The authorized permission remains valid as long as the application is running in the foreground, the application widget is [visible on the home screen](../../form/arkts-ui-widget-lifecycle.md), or the application has a [continuous task](../../task-management/continuous-task.md#continuous-task) (currently, only the location task is supported) in the background. 31e41f4b71Sopenharmony_ci 32e41f4b71Sopenharmony_ci In other cases, the permission will be revoked after a 10-second timer has expired. If the application needs the permission again, you need to request the permission. 33e41f4b71Sopenharmony_ci 34e41f4b71Sopenharmony_ci - When an application with the temporary permission is switched to the background, a 10-second timer starts. During the 10 seconds, if the application widget is visible on the home screen or the application has a continuous task, the timer stops. 35e41f4b71Sopenharmony_ci 36e41f4b71Sopenharmony_ci When the application widget is invisible on the home screen or the continuous task is complete, the timer starts again. The temporary permission will be revoked when the timer has expired. 37e41f4b71Sopenharmony_ci 38e41f4b71Sopenharmony_ci As shown in the following figure, the camera widget is visible on the home screen. 39e41f4b71Sopenharmony_ci 40e41f4b71Sopenharmony_ci  41e41f4b71Sopenharmony_ci 42e41f4b71Sopenharmony_ci- If the user selects **Ask each time** in the permission settings, the ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION permissions will be granted to the application temporarily. The permissions will be revoked in the same way as described above. 43