1# Requesting User Authorization for the Second Time
2
3If the user rejects to grant the permission when an application calls [requestPermissionsFromUser()](../../reference/apis-ability-kit/js-apis-abilityAccessCtrl.md#requestpermissionsfromuser9) to [request user authorization](request-user-authorization.md) in a dialog box, the application will no longer start the user authorization dialog box again by using **requestPermissionsFromUser()**. If the application still needs the permission, you can use either of the following methods:
4
5- Allow the user to manually grant the permission using the system application **Settings** in the following path:
6<!--RP1-->
7**Privacy** > **Permission manager** > Permission type (such as **Location**) > *App*
8<!--RP1End-->
9
10- Start the permission settings dialog box by using [requestPermissionOnSetting()](../../reference/apis-ability-kit/js-apis-abilityAccessCtrl.md#requestpermissiononsetting12) and guide the user to grant the permission.
11
12**Figure 1** Requesting user authorization for the second time
13
14![en_image_location](figures/en_image_location_second.png)
15
16The following code shows how to request the ohos.permission.APPROXIMATELY_LOCATION permission in this way.
17
18```ts
19import { abilityAccessCtrl, Context, common } from '@kit.AbilityKit';
20import { BusinessError } from '@kit.BasicServicesKit';
21
22let atManager: abilityAccessCtrl.AtManager = abilityAccessCtrl.createAtManager();
23let context: Context = getContext(this) as common.UIAbilityContext;
24atManager.requestPermissionOnSetting(context, ['ohos.permission.APPROXIMATELY_LOCATION']).then((data: Array<abilityAccessCtrl.GrantStatus>) => {
25  console.info('data:' + JSON.stringify(data));
26}).catch((err: BusinessError) => {
27  console.error('data:' + JSON.stringify(err));
28});
29```
30